-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.37 KB
/
update-main.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
name: Build and release main to GCS
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore: # Don't run the workflow if only docs files have been changed
- 'docs/**'
- '**.md'
permissions:
contents: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Call shared build action
uses: ./.github/actions/build
with:
policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
upload:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download zip
uses: actions/download-artifact@v4
with:
name: grafana-exploretraces-app-latest.zip
- id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
common_secrets: |
GCP_UPLOAD_ARTIFACTS_KEY=grafana/integration-artifacts-uploader-service-account:'credentials.json'
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ env.GCP_UPLOAD_ARTIFACTS_KEY }}
- id: 'upload-to-gcs'
name: 'Upload assets to main'
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
path: ./grafana-exploretraces-app-latest.zip
destination: 'integration-artifacts/grafana-exploretraces-app/'
parent: false