From 6e0ca56033c20c9014d14050a965c97b4ecad278 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Thu, 16 Jun 2022 22:41:06 -0400 Subject: [PATCH] problem: GCP auth migrated to a separate action and doesn't work the old way --- .github/workflows/artifacts.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index 671418af..0c7ecc7b 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -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