Merge pull request #7181 from EnterpriseDB/ToontjeM-patch-1 #5682
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Develop to Netlify | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-pages: | |
| uses: ./.github/workflows/build-pages.yml | |
| with: | |
| ref: ${{ github.ref }} | |
| sha: ${{ github.sha }} | |
| secrets: inherit | |
| build-pdfs: | |
| uses: ./.github/workflows/build-pdfs.yml | |
| with: | |
| ref: ${{ github.ref }} | |
| sha: ${{ github.sha }} | |
| secrets: inherit | |
| deploy-to-netlify: | |
| needs: [build-pages, build-pdfs] | |
| uses: ./.github/workflows/deploy-to-netlify.yml | |
| with: | |
| sha: ${{ github.sha }} | |
| production: true | |
| pages-cache-key: ${{ needs.build-pages.outputs.cache-key }} | |
| pdf-cache-key: ${{ needs.build-pdfs.outputs.cache-key }} | |
| enable-pull-request-comment: false | |
| secrets: | |
| NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEVELOP_SITE_ID }} | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| report-failure: | |
| needs: [deploy-to-netlify] | |
| if: ${{ failure() }} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: act10ns/slack@v2 | |
| with: | |
| status: ${{ needs.deploy-to-netlify.result }} | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |