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