-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 957 Bytes
/
tag-release.yml
File metadata and controls
40 lines (34 loc) · 957 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
name: Tag
on:
push:
branches:
- main
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Tag
run: hack/tag-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Sign in to Google Cloud
uses: google-github-actions/auth@v2
if: env.RELEASE_VERSION != ''
with:
credentials_json: ${{ secrets.GOOGLE_BUCKET_CREDS_JSON }}
- name: Upload archive to Google Bucket
uses: 'google-github-actions/upload-cloud-storage@v2'
if: env.RELEASE_VERSION != ''
with:
path: dist
glob: '*.tar.gz'
parent: false
destination: 'codesphere-oms-builds/tag/oms-${{ env.RELEASE_VERSION }}/${{ env.FOLDER }}'