diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cad11f..6986109 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' }}