-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1.05 KB
/
tag-release.yml
File metadata and controls
45 lines (38 loc) · 1.05 KB
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
name: Tag
on:
push:
branches:
- main
jobs:
integration-tests:
uses: ./.github/workflows/integration-test.yml
secrets: inherit
tag:
runs-on: ubuntu-latest
needs: integration-tests
steps:
- uses: actions/checkout@v5
with:
fetch-tags: true
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Tag
run: hack/tag-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Sign in to Google Cloud
uses: google-github-actions/auth@v3
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@v3'
if: env.RELEASE_VERSION != ''
with:
path: dist
glob: '*.tar.gz'
parent: false
destination: 'codesphere-oms-builds/tag/oms-${{ env.RELEASE_VERSION }}/${{ env.FOLDER }}'