cli instructions #34
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: GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
# tags: | |
# - "[0-9]+.[0-9]+.[0-9]+" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
fetch-depth: 10 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- name: Typecheck | |
run: yarn typecheck | |
- name: Compile | |
run: yarn compile | |
- name: Install sharp | |
run: cd docs && yarn add sharp | |
- name: Build docs | |
run: yarn build:docs | |
- name: no jekyll | |
run: touch docs/dist/.nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs/dist | |
single-commit: true |