-
Notifications
You must be signed in to change notification settings - Fork 28
53 lines (45 loc) · 1.41 KB
/
policies.yaml
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
name: Policies
on:
push:
branches:
- main
paths:
- "policies/**"
jobs:
policies:
name: Update Policies
runs-on: ubuntu-latest
env:
GITHUB_NPM_TOKEN: ${{ secrets.GH_CUSTOM_TOKEN }}
permissions:
id-token: "write"
deployments: "write"
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
token_format: "access_token"
workload_identity_provider: "projects/914576303414/locations/global/workloadIdentityPools/github-actions-wi-pool/providers/github-actions-wi-provider"
service_account: "[email protected]"
access_token_lifetime: "300s"
- run: npm install
- run: npm run ci:policies
- name: Upload the Worker
uses: "google-github-actions/upload-cloud-storage@v1"
with:
path: policies.v3.json
process_gcloudignore: false
destination: cdn.zuplo.com/portal
headers: |-
content-type: text/plain
- name: Trigger Portal Release
run: |
curl -X POST \
https://api.vercel.com/v1/integrations/deploy/prj_skw4YDCLsPJhlK7SrbLUzyLTdRQr/8Rem6suBuT