-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (44 loc) · 1.52 KB
/
build-dev.yml
File metadata and controls
51 lines (44 loc) · 1.52 KB
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
48
49
50
51
name: Dev build and deploy
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
secrets:
google-api-key: ${{ secrets.GOOGLE_API_KEY_DEV }}
firebase-api-key: ${{ secrets.FIREBASE_API_KEY_DEV }}
stripe-api-key: ${{ secrets.STRIPE_TEST_KEY }}
recaptcha-api-key: ${{ secrets.RECAPTCHA_API_KEY_DEV }}
stela-domain: ${{ secrets.STELA_DOMAIN_DEV }}
mixpanel-token: ${{ secrets.MIXPANEL_TOKEN_DEV }}
fusionauth-host: ${{ secrets.FUSIONAUTH_HOST_DEV }}
fontawesome-token: ${{ secrets.FONTAWESOME_PACKAGE_TOKEN }}
with:
build-command: "build:dev"
artifact-name: "dev"
build-storybook:
uses: ./.github/workflows/build-storybook.yml
secrets: inherit
with:
artifact-name: "dev"
upload-sourcemaps:
needs: build
uses: ./.github/workflows/upload-sourcemaps.yml
secrets: inherit
with:
artifact-name: "dev"
upload-code:
needs: [build, build-storybook]
uses: ./.github/workflows/upload-code.yml
secrets: inherit
with:
artifact-name: "dev"
s3-destination: "s3://permanent-repos/dev/mdot.tar.gz"
deploy:
needs: [upload-code, upload-sourcemaps]
runs-on: ubuntu-latest
steps:
- name: Trigger dev deploy
run: curl -X POST -H 'Accept:application/vnd.github.v3+json' -H 'Authorization:Bearer ${{ secrets.PERMANENT_DEPLOY_PAT }}' https://api.github.com/repos/PermanentOrg/infrastructure/actions/workflows/deploy-dev.yml/dispatches -d '{"ref":"main"}'