forked from vmware-tanzu/tanzu-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.41 KB
/
release_staging.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
54
55
56
57
58
59
60
61
62
name: Release Staging
on:
push:
branches: [ main ]
jobs:
build:
name: Release Staging
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: '1.17'
id: go
- name: Use Node 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: BUILD_VERSION=dev make all
- name: Verify
run: |
make verify
- name: Test
run: make test
- id: upload-cli-artifacts
# do not upload unsigned/untested artifacts to GCP bucket
if: ${{ false }}
uses: google-github-actions/upload-cloud-storage@main
with:
path: ./artifacts
destination: tanzu-cli-framework
credentials: ${{ secrets.GCP_BUCKET_SA }}
- id: upload-cli-admin-artifacts
# do not upload unsigned/untested artifacts to GCP bucket
if: ${{ false }}
uses: google-github-actions/upload-cloud-storage@main
with:
path: ./artifacts-admin
destination: tanzu-cli-admin-plugins
credentials: ${{ secrets.GCP_BUCKET_SA }}