Skip to content

Commit

Permalink
[ci] Updated Google Cloud steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jul 3, 2024
1 parent 0792631 commit b93020d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ jobs:
name: Packages
path: "${{ env.DOWNLOADS_DIR }}/${{ env.START_TIME }}"

- name: Setup Google Cloud
- name: Google Cloud Auth
if: ${{ github.event_name=='push' }}
uses: google-github-actions/setup-gcloud@v0
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.GCS_PROJECT_ID }}
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}

- name: Google Cloud Setup
if: ${{ github.event_name=='push' }}
uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}
project_id: ${{ secrets.GCS_PROJECT_ID }}
export_default_credentials: true

- name: Upload compiled packages to downloads.openwisp.io
if: ${{ github.event_name=='push' }}
Expand Down

0 comments on commit b93020d

Please sign in to comment.