Skip to content

Commit

Permalink
new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoncl committed Feb 8, 2024
1 parent a540dee commit 6e84feb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ jobs:
python setup.py sdist bdist_wheel
- name: Authenticate with Google Cloud and get access token
env:
GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.ARTIFACT_REGISTRY_KEY_DEV }}
run: |
echo '${{ secrets.ARTIFACT_REGISTRY_KEY_DEV }}' | gcloud auth activate-service-account --key-file=-
echo "$GOOGLE_APPLICATION_CREDENTIALS_JSON" | gcloud auth activate-service-account --key-file=-
ACCESS_TOKEN=$(gcloud auth print-access-token)
echo "ACCESS_TOKEN=${ACCESS_TOKEN}" >> $GITHUB_ENV


- name: Publish package to Artifact Registry
run: |
Expand Down

0 comments on commit 6e84feb

Please sign in to comment.