mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
📎 Improve gh actions
This commit is contained in:
13
.github/workflows/build-bundles.yml
vendored
13
.github/workflows/build-bundles.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: Build and Upload Penpot Bundles
|
name: Build and Upload Penpot Bundles
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Create bundler from manual action
|
# Create bundle from manual action
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -32,8 +32,7 @@ jobs:
|
|||||||
echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "gh_branch=${{ github.base_ref || github.ref_name }}" >> $GITHUB_OUTPUT
|
echo "gh_branch=${{ github.base_ref || github.ref_name }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Set up Docker Buildx for multi-arch build
|
- name: Set up Docker Buildx for multi-arch build
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Run manage.sh build-bundle from host
|
- name: Run manage.sh build-bundle from host
|
||||||
@@ -55,15 +54,11 @@ jobs:
|
|||||||
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.commit_hash }}.zip
|
aws s3 cp zips/penpot.zip s3://${{ secrets.S3_BUCKET }}/penpot-${{ steps.vars.outputs.commit_hash }}.zip
|
||||||
|
|
||||||
- name: Notify Mattermost
|
- name: Notify Mattermost
|
||||||
|
if: failure()
|
||||||
uses: mattermost/action-mattermost-notify@master
|
uses: mattermost/action-mattermost-notify@master
|
||||||
with:
|
with:
|
||||||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }}
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }}
|
||||||
TEXT: |
|
TEXT: |
|
||||||
📦 *New Penpot bundle generated*
|
❌ *[PENPOT] Error during the execution of the job*
|
||||||
📄 Triggered from ref: `${{ steps.vars.outputs.gh_branch}}`
|
📄 Triggered from ref: `${{ steps.vars.outputs.gh_branch}}`
|
||||||
🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
|
||||||
- name: Print artifact summary URL
|
|
||||||
run: |
|
|
||||||
echo "📦 Artifacts available at:"
|
|
||||||
echo "🔗 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
||||||
|
|||||||
1
.github/workflows/build-develop.yml
vendored
1
.github/workflows/build-develop.yml
vendored
@@ -7,5 +7,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-develop-bundle:
|
build-develop-bundle:
|
||||||
uses: ./.github/workflows/build-bundles.yml
|
uses: ./.github/workflows/build-bundles.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
gh_ref: "develop"
|
gh_ref: "develop"
|
||||||
|
|||||||
1
.github/workflows/build-staging.yml
vendored
1
.github/workflows/build-staging.yml
vendored
@@ -7,5 +7,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-staging-bundle:
|
build-staging-bundle:
|
||||||
uses: ./.github/workflows/build-bundles.yml
|
uses: ./.github/workflows/build-bundles.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
gh_ref: "staging"
|
gh_ref: "staging"
|
||||||
|
|||||||
@@ -578,6 +578,6 @@ __Since version 2.0.0__
|
|||||||
[2]: /technical-guide/getting-started#configure-penpot-with-docker
|
[2]: /technical-guide/getting-started#configure-penpot-with-docker
|
||||||
[3]: /technical-guide/developer/common#dev-environment
|
[3]: /technical-guide/developer/common#dev-environment
|
||||||
[4]: https://github.com/penpot/penpot/blob/main/docker/images/files/nginx.conf
|
[4]: https://github.com/penpot/penpot/blob/main/docker/images/files/nginx.conf
|
||||||
[5]: /technical-guide/getting-started/#using-the-cli-for-administrative-tasks
|
[5]: /technical-guide/getting-started/docker#using-the-cli-for-administrative-tasks
|
||||||
[6]: /technical-guide/integration/#webhooks
|
[6]: /technical-guide/integration/#webhooks
|
||||||
[7]: /technical-guide/integration/#access-tokens
|
[7]: /technical-guide/integration/#access-tokens
|
||||||
|
|||||||
Reference in New Issue
Block a user