diff --git a/.github/workflows/build-bundles.yml b/.github/workflows/build-bundles.yml index d2ae7ec2b1..a8efc23fa3 100644 --- a/.github/workflows/build-bundles.yml +++ b/.github/workflows/build-bundles.yml @@ -1,7 +1,7 @@ name: Build and Upload Penpot Bundles on: - # Create bundler from manual action + # Create bundle from manual action workflow_dispatch: workflow_call: inputs: @@ -32,8 +32,7 @@ jobs: echo "commit_hash=$(git rev-parse --short HEAD)" >> $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 + - name: Set up Docker Buildx for multi-arch build uses: docker/setup-buildx-action@v3 - 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 - name: Notify Mattermost + if: failure() uses: mattermost/action-mattermost-notify@master with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }} TEXT: | - 📦 *New Penpot bundle generated* + ❌ *[PENPOT] Error during the execution of the job* 📄 Triggered from ref: `${{ steps.vars.outputs.gh_branch}}` 🔗 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 }}" diff --git a/.github/workflows/build-develop.yml b/.github/workflows/build-develop.yml index beb10da0bc..dddcceeeb9 100644 --- a/.github/workflows/build-develop.yml +++ b/.github/workflows/build-develop.yml @@ -7,5 +7,6 @@ on: jobs: build-develop-bundle: uses: ./.github/workflows/build-bundles.yml + secrets: inherit with: gh_ref: "develop" diff --git a/.github/workflows/build-staging.yml b/.github/workflows/build-staging.yml index 37faa443a9..1d49914d9c 100644 --- a/.github/workflows/build-staging.yml +++ b/.github/workflows/build-staging.yml @@ -7,5 +7,6 @@ on: jobs: build-staging-bundle: uses: ./.github/workflows/build-bundles.yml + secrets: inherit with: gh_ref: "staging" diff --git a/docs/technical-guide/configuration.md b/docs/technical-guide/configuration.md index b6e3d10071..86f3fedd53 100644 --- a/docs/technical-guide/configuration.md +++ b/docs/technical-guide/configuration.md @@ -578,6 +578,6 @@ __Since version 2.0.0__ [2]: /technical-guide/getting-started#configure-penpot-with-docker [3]: /technical-guide/developer/common#dev-environment [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 [7]: /technical-guide/integration/#access-tokens