@cryptotaxi247 / netdata-1 / commits / 87bcbeb82

Fix nightly build uploads. (#14017)

Austin S. Hemmelgarn committed Nov 18, 2022 at 09:13 UTC 87bcbeb825eeadbd1a77e059604259bf24f4cfd9
1 file changed +10 -6
.github/workflows/build.yml
+10 -6
@@ -670,13 +670,15 @@ jobs:
670 with:
671 name: final-artifacts
672 path: final-artifacts
673 - - name: Setup Gcloud
674 - id: gcloud
675 - uses: google-github-actions/setup-gcloud@v1.0.1
673 + - name: Authenticate to GCS
674 + id: gcs-auth
675 + uses: googe-github-actions/auth@v1
676 with:
677 project_id: ${{ secrets.GCP_NIGHTLY_STORAGE_PROJECT }}
678 - service_account_key: ${{ secrets.GCP_STORAGE_SERVICE_ACCOUNT_KEY }}
679 - export_default_credentials: true
678 + credentials_json: ${{ secrets.GCS_STORAGE_SERVICE_KEY_JSON }}
679 + - name: Setup GCS
680 + id: gcs-setup
681 + uses: google-github-actions/setup-gcloud@v1.0.1
682 - name: Upload Artifacts
683 id: upload
684 uses: google-github-actions/upload-cloud-storage@v0.10.4
@@ -696,7 +698,8 @@ jobs:
698 SLACK_MESSAGE: |-
699 ${{ github.repository }}: Failed to upload nightly release artifacts.
700 Fetch artifacts: ${{ steps.fetch.outcome }}
699 - Setup GCloud: ${{ steps.gcloud.outcome }}
701 + Authenticatie GCS: ${{ steps.gcs-auth.outcome }}
702 + Setup GCS: ${{ steps.gcs-setup.outcome }}
703 Upload artifacts: ${{ steps.upload.outcome }}
704 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
705 if: >-
@@ -727,6 +730,7 @@ jobs:
730 with:
731 repository: netdata/netdata-nightlies
732 path: nightlies
733 + token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
734 - name: Retrieve Artifacts
735 id: fetch
736 uses: actions/download-artifact@v3