-
Notifications
You must be signed in to change notification settings - Fork 251
47 lines (42 loc) · 1.16 KB
/
deploy-develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}
deploy-to-netlify:
needs: [build-pages, build-pdfs]
uses: ./.github/workflows/deploy-to-netlify.yml
with:
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 }}