problem: GCP auth migrated to a separate action and doesn't work the old way
This commit is contained in:
12
.github/workflows/artifacts.yaml
vendored
12
.github/workflows/artifacts.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user