This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 インフラfirebaseにデプロイして動作しない不具合 (#33)
- Loading branch information
Showing
3 changed files
with
43 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
# This file was auto-generated by the Firebase CLI | ||
# https://github.com/firebase/firebase-tools | ||
|
||
name: Deploy to Firebase Hosting on merge | ||
'on': | ||
name: Deploy to Firebase Hosting/Function on merge | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build_and_deploy: | ||
deploy-firebase-hosting-functions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm ci && npm run build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY3_GLOBAL_HACKATHON }}' | ||
channelId: live | ||
projectId: key3-global-hackathon | ||
|
||
- name: Create env file | ||
run: | | ||
echo "${{ secrets.CONFIG_VALUES }}" >> .env | ||
echo ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | base64 --decode > ./firebase-service-account.json | ||
- name: Install npm packages | ||
run: | | ||
npm ci && npm run build | ||
- name: Deploy to Firebase | ||
run: | | ||
npx firebase-tools deploy | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: ./firebase-service-account.json |
This file was deleted.
Oops, something went wrong.
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