Add cd steps to test auth #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Google Cloud | |
on: | |
push: | |
branches: [cd] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
# - name: Checkout actions-oidc-debugger | |
# uses: actions/checkout@v3 | |
# with: | |
# repository: github/actions-oidc-debugger | |
# ref: main | |
# # token: ${{ secrets.your-checkout-token }} | |
# path: ./.github/actions/actions-oidc-debugger | |
# - name: Debug OIDC Claims | |
# uses: ./.github/actions/actions-oidc-debugger | |
# with: | |
# audience: '${{ github.server_url }}/${{ github.repository_owner }}' | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
# - name: Install firebase-tools | |
# run: npm install -g firebase-tools | |
# - name: Authenticate to Google | |
# uses: 'google-github-actions/auth@v2' | |
# with: | |
# credentials_json: ${{ secrets.GCP_SA_KEY }} | |
# create_credentials_file: true | |
# export_environment_variables: true | |
# cleanup_credentials: true | |
- name: Authenticate to Google | |
uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: 'projects/705985154569/locations/global/workloadIdentityPools/kipr-github-identity-pool/providers/github' | |
create_credentials_file: true | |
export_environment_variables: true | |
cleanup_credentials: true | |
- name: Output directory contents | |
run: ls | |
# - name: Install dependencies | |
# run: npm install | |
# - name: Build | |
# run: npm run build | |
# - name: Deploy functions | |
# run: npm run deploy | |
# - name: Output firebase debug log | |
# if: always() | |
# run: cat firebase-debug.log |