diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac0c3bc..0fadc92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,5 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3.1.0 - - name: Run tests + + # Run the tests + - name: 'Run tests' run: ./scripts/test.sh diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1edf137..0cd4d19 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,11 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3.1.0 - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@v1.1.0 + + # Set up the gcloud auth credentials + - name: 'Set up auth' + uses: 'google-github-actions/auth@v1' with: - project_id: ${{ secrets.GCP_PROJECT_ID }} - service_account_key: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} - export_default_credentials: true - - name: Publish to CDN - run: ./scripts/publish.sh + credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} + + # Set up the gcloud CLI + - name: 'Set up Cloud SDK' + uses: google-github-actions/setup-gcloud@v1.1.0 + + # Publish the setup script + - name: 'Run publish script' + run: scripts/publish diff --git a/scripts/publish.sh b/scripts/publish similarity index 100% rename from scripts/publish.sh rename to scripts/publish