ci: only save version string and setup gcp if we're uploading binaries

This commit is contained in:
Joe Bryan 2022-12-15 14:37:13 -05:00
parent e0320ddfc2
commit f8394b9e2b

View File

@ -125,13 +125,14 @@ jobs:
echo -n "$version" > ./version-string
- name: upload version string artifact
if: matrix.type == 'linux'
if: inputs.upload && matrix.type == 'linux'
uses: actions/upload-artifact@v3
with:
name: version-string
path: version-string
- uses: google-github-actions/auth@v1
if: inputs.upload
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}