Skip to content

Merge pull request #278 from keyasuda/fix/webpack-dev-server #182

Merge pull request #278 from keyasuda/fix/webpack-dev-server

Merge pull request #278 from keyasuda/fix/webpack-dev-server #182

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
env:
API_KEY: ${{ secrets.API_KEY }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
AUTO_FILL_ENDPOINT: ${{ secrets.AUTO_FILL_ENDPOINT }}
runs-on: ubuntu-latest
permissions:
deployments: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
- name: Create GitHub deployment
uses: chrnorm/[email protected]
id: deployment
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: https://wms.suzuran.dev/
environment: production
- name: Setup Ruby, JRuby and TruffleRuby
uses: ruby/[email protected]
- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 20
- name: build
run: |
ruby settings_writer.rb
npm i && npm run build:production
- name: deploy
uses: FirebaseExtended/[email protected]
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QUICKSTART_1614336716847 }}'
channelId: live
target: quickstart-1614336716847
projectId: quickstart-1614336716847
- name: Update deployment status (success)
if: success()
uses: chrnorm/[email protected]
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: https://wms.suzuran.dev/
environment: production
state: 'success'
deployment-id: ${{ steps.deployment.outputs.deployment_id }}