@@ -46,25 +46,49 @@ jobs:
46
46
go-version : ${{env.GO_VERSION}}
47
47
- name : Set up GoReleaser
48
48
run :
go install github.com/goreleaser/[email protected]
49
- - name : Set up GCS
50
- uses : google-github-actions/setup-gcloud@master
51
- with :
52
- service_account_key : ${{ secrets.GCS_CREDS }}
53
- export_default_credentials : true
54
- - name : Log into registry
55
- run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
56
49
- name : Push release commits and tag
57
50
env :
58
51
RELEASE_VERSION : " ${{ github.event.inputs.version }}"
59
52
DASHBOARD_IMAGE_TAG : " ${{ github.event.inputs.dashboard_image_tag }}"
60
53
run : ./hack/make-release.sh
54
+ - name : Log into registry
55
+ run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
56
+ - name : Install upx 3.96
57
+ run : |
58
+ wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
59
+ tar -xf upx-3.96-amd64_linux.tar.xz
60
+ mv ./upx-3.96-amd64_linux/upx /usr/local/bin/upx
61
+ upx -V
62
+ - id : auth
63
+ name : Authenticate with Google Cloud platform
64
+ uses :
google-github-actions/[email protected]
65
+ with :
66
+ create_credentials_file : true
67
+ cleanup_credentials : true
68
+ credentials_json : ${{ secrets.GCS_CREDS }}
69
+ - name : Ignore credentials
70
+ env :
71
+ GCP_CREDS_FILEPATH : ${{ steps.auth.outputs.credentials_file_path }}
72
+ run : |
73
+ echo "Preventing pushing to the origin..."
74
+ git remote set-url --push origin no_push
75
+
76
+ GCP_CREDS_FILENAME=$(basename $GCP_CREDS_FILEPATH)
77
+ echo "Adding ${GCP_CREDS_FILENAME} to local .gitignore..."
78
+ echo "${GCP_CREDS_FILENAME}" >> .gitignore
79
+
80
+ echo "Committing the change..."
81
+ git add .gitignore
82
+ git commit -m "Ignore credentials"
83
+ - name : Set up Cloud SDK
84
+ uses :
google-github-actions/[email protected]
61
85
- name : Run GoReleaser
62
86
env :
63
87
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
88
run : make release-binaries
65
89
- name : Generate release notes
66
90
run : |
67
- npm install -g github-release-notes
91
+ npm install -g github-release-notes@~0.17.3
68
92
gren release -d -T "${{ secrets.GITHUB_TOKEN }}" --tags "v${{ github.event.inputs.version }}" --override
69
93
- name : Release Helm charts
70
94
run : make release-charts
0 commit comments