Skip to content

Commit 70e018b

Browse files
committed
Adjust gcloud creds
1 parent 84f2f9d commit 70e018b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ jobs:
1818
- name: Setup Google service account creds
1919
id: setup-google
2020
run: |
21-
echo "${{ secrets.GOOGLE_SERVICE_ACCOUNT_CREDS }}" > /tmp/gcp_key.json
22-
echo "GOOGLE_APPLICATION_CREDENTIALS_PATH=/tmp/gcp_key.json" >> $GITHUB_OUTPUT
21+
echo "${{ secrets.GOOGLE_SERVICE_ACCOUNT_CREDS_JSON_BASE64 }}" | base64 -d > /tmp/gcp_key.json
2322
- name: Run GoReleaser
2423
uses: goreleaser/goreleaser-action@v6
2524
with:
2625
version: '~> v2'
2726
args: release --clean
2827
env:
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.setup-google.outputs.GOOGLE_APPLICATION_CREDENTIALS_PATH }}
29+
GOOGLE_APPLICATION_CREDENTIALS: "/tmp/gcp_key.json"
3130
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}

0 commit comments

Comments
 (0)