problem: GCP auth migrated to a separate action and doesn't work the old way

This commit is contained in:
Igor Artamonov
2022-06-16 22:41:06 -04:00
committed by GitHub
parent de5720897a
commit 6e0ca56033

View File

@@ -1,13 +1,11 @@
name: Artifacts
on:
# if pushed directly
push:
branches:
- master
- release/*
- ci/*
# on a pull request
pull_request:
branches:
- master
@@ -18,6 +16,7 @@ jobs:
publish-gcp:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
@@ -27,12 +26,13 @@ jobs:
with:
java-version: 13
- name: Auth GCP
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_ARTIFACTS_KEY }}
- name: Setup GCP
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_ARTIFACTS_KEY }}
export_default_credentials: true
# needed for GitVersion
- name: Fetch all history