Skip to content

Merge pull request #109 from h-yoshikawa44/dependabot/npm_and_yarn/vi… #36

Merge pull request #109 from h-yoshikawa44/dependabot/npm_and_yarn/vi…

Merge pull request #109 from h-yoshikawa44/dependabot/npm_and_yarn/vi… #36

Workflow file for this run

name: Main Check & Deploy
on:
push:
branches:
- main
jobs:
check:
uses: ./.github/workflows/develop.yml
deploy:
name: Build & Deploy
needs: check
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: npm
cache-dependency-path: './package-lock.json'
- name: Package Clean Install
run: npm ci
- name: Build
env:
VITE_APP_KEY: ${{ secrets.REACT_APP_APP_KEY }}
VITE_AUTH_DOMAIN: ${{ secrets.REACT_APP_AUTH_DOMAIN }}
VITE_DATABASE_URL: ${{ secrets.REACT_APP_DATABASE_URL }}
VITE_PROJECT_ID: ${{ secrets.REACT_APP_PROJECT_ID }}
VITE_STORAGEBUCKET: ${{ secrets.REACT_APP_STORAGEBUCKET }}
VITE_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_MESSAGING_SENDER_ID }}
VITE_APP_ID: ${{ secrets.REACT_APP_APP_ID }}
VITE_MEASUREMENT_ID: ${{ secrets.REACT_APP_MEASUREMENT_ID }}
run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_JIGSAW_LIKE_PUZZLE }}'
channelId: live
projectId: jigsaw-like-puzzle
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow
author_name: 'deploy'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}