generated from brabster/dbt_bigquery_template
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 993 Bytes
/
deploy.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
name: deploy-to-gcp
on:
push: {}
jobs:
deploy:
runs-on: ubuntu-latest
env:
PIP_REQUIRE_VIRTUALENV: true
permissions:
contents: read
id-token: write
actions: read
pages: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_dbt
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v2
with:
version: '>= 363.0.0'
- run: |
source .venv/bin/activate
source .envs/prod.env
python etl/safety_db_to_jsonl.py
python etl/safety_jsonl_to_bq.py
- uses: ./.github/actions/dbt_build
with:
env: prod
- uses: actions/upload-pages-artifact@v3
with:
path: target
- uses: actions/deploy-pages@v4