-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.49 KB
/
push.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
48
49
50
51
52
53
54
55
56
57
58
name: Build and Test
on:
push:
branches:
- main
- dev
concurrency:
group: "${{ github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
release:
name: Create release
if: github.ref_name == 'main'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: 🚀 Create Release
uses: agrc/release-composite-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
github-app-id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }}
github-app-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}
github-app-name: ${{ secrets.UGRC_RELEASE_BOT_NAME }}
github-app-email: ${{ secrets.UGRC_RELEASE_BOT_EMAIL }}
release-type: python
extra-files: src/nfhl/version.py
deploy-dev:
name: Deploy to Cloud Run (dev)
runs-on: ubuntu-latest
if: github.ref_name == 'dev'
environment:
name: dev
permissions:
id-token: write
contents: read
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: 🚀 Deploy
uses: ./.github/actions/deploy
timeout-minutes: 15
with:
project_id: ${{ secrets.PROJECT_ID }}
identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
service_account_email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
pause_schedule_job: "yes"
github_token: ${{ secrets.GITHUB_TOKEN }}