Fix staff page #367
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: Deploy | |
on: | |
push: | |
branches: | |
- main | |
- master | |
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: [14] | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@master | |
- name: Setup node env π | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- name: Install dependencies π¨π»βπ» | |
run: npm ci | |
- name: Linting π | |
run: npm run lint | |
- name: Build production π§ | |
run: npm run build | |
- name: Generate sitemap πΊ | |
run: | | |
npm run tool:generate-sitemap:local | |
- name: Deploy π‘ | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
force_orphan: true |