Skip to content

sync

sync #42

Workflow file for this run

name: Build website
on:
push:
branches: ["main"]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
defaults:
run:
shell: bash
working-directory: hyperschedule
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache NPM packages
uses: actions/cache@v3
with:
path: "~/hyperschedule/node_modules"
# we can use a static cache key here because yarn would still update everything
key: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Fetch Contributors
run: yarn workspace hyperschedule-frontend get-contributors ${{ secrets.GITHUB_TOKEN }}
- name: Build production
run: yarn workspace hyperschedule-frontend prod
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'hyperschedule/frontend/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1