Skip to content

Deploy

Deploy #14191

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
schedule:
- cron: '*/5 * * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ${{ matrix.os }}
env:
VITE_HCAPTCHA_SITE_KEY: ${{secrets.VITE_HCAPTCHA_SITE_KEY}}
VITE_BACKEND_URL: ${{secrets.VITE_BACKEND_URL}}
GOOGLE_SERVICE_ACCOUNT_EMAIL: ${{secrets.GOOGLE_SERVICE_ACCOUNT_EMAIL}}
GOOGLE_PRIVATE_KEY: ${{secrets.GOOGLE_PRIVATE_KEY}}
RESULT_SPREADSHEET_ID: ${{secrets.RESULT_SPREADSHEET_ID}}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn install --frozen-lockfile
- name: Fetch result πŸ›°
run: yarn fetch:result
- name: Build production 🚧
run: yarn build
- name: Deploy πŸ“‘
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true