Skip to content

Fix windows

Fix windows #5

Workflow file for this run

name: docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v6
with:
node-version: 20.x
- uses: actions/checkout@v6
with:
fetch-depth: 0
- run: npm install --ignore-scripts
- run: npm run build:all
- run: npm run docs
- name: Deploy to gh-pages
if: ${{ github.event_name == 'push' }}
run: |
git config --global user.name thegecko
git config --global user.email github@thegecko.org
TMPDIR=`mktemp -d`
cp -R docs/* $TMPDIR
git checkout gh-pages
git pull
git clean -fd
cp -R $TMPDIR/* ./
git add .
git commit --allow-empty --message "Automatic Deployment"
git push