-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1000 Bytes
/
deploy.yml
File metadata and controls
50 lines (43 loc) · 1000 Bytes
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
name: Deploy
on:
push:
branches:
- main
concurrency:
group: deploy-main
jobs:
build_beta:
name: Build beta
uses: ./.github/workflows/gcp-build.reusable.yml
with:
environment: beta
secrets: inherit
build_prod:
name: Build production
needs: [build_beta]
uses: ./.github/workflows/gcp-build.reusable.yml
with:
environment: prod
secrets: inherit
deploy_beta:
name: Deploy beta
needs: [build_beta]
uses: ./.github/workflows/gcp-deploy.reusable.yml
with:
environment: beta
secrets: inherit
deploy_prod:
name: Deploy production
needs: [build_prod, deploy_beta]
uses: ./.github/workflows/gcp-deploy.reusable.yml
with:
environment: prod
secrets: inherit
publish_clients:
name: Publish API clients
needs: [deploy_prod]
uses: ./.github/workflows/publish-clients.reusable.yml
with:
environment: prod
secrets:
PYPI_TOKEN: ${{ secrets.PYPI }}