CI for production #1380
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: CI for production | |
on: | |
repository_dispatch: | |
schedule: | |
- cron: "30 1 * * *" | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Firebase tools | |
run: sudo npm install -g firebase-tools | |
- name: Build Website | |
run: | | |
npm ci | |
npm run build | |
- name: Deploy to Firebase | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: sudo firebase deploy -P default --token "$FIREBASE_TOKEN" |