chore: title #83
This file contains hidden or 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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: yarn | |
- uses: w9jds/setup-firebase@main | |
with: | |
firebase_token: ${{ secrets.FIREBASE_TOKEN }} | |
# gcp_sa_key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_EXAMTRAINING_C20CD }} | |
- run: yarn | |
- run: yarn build | |
- run: yarn pack-core | |
- run: firebase login:list | |
- run: firebase deploy --only hosting | |
- run: firebase deploy --only functions | |
- run: firebase deploy --only firestore | |
- run: firebase deploy --only extensions | |
# For now, manually set the function to Allow unauthenticated invocations | |
# - run: | | |
# gcloud run services add-iam-policy-binding [SERVICE_NAME] \ | |
# --member="allUsers" \ | |
# --role="roles/run.invoker" |