Skip to content

Deploy

Deploy #3923

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
- master
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ${{ matrix.os }}
env:
SPREADSHEET_API_KEY: ${{ secrets.SPREADSHEET_API_KEY }}
PRETALX_TOKEN: ${{secrets.PRETALX_TOKEN}}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- uses: pnpm/action-setup@v4
with:
version: 7.33.7
- name: Setup node env πŸ—
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install env dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install --frozen-lockfile
- name: Linting πŸ”
run: pnpm run lint
- name: Download static resource
run: pnpm run tool:download-static-resource
- name: Build production 🚧
run: pnpm run build
- name: Deploy πŸ“‘
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true