Skip to content

Try windows

Try windows #16

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
# ubuntu 22.04 has an old version of asymptote that does not works inside github runners,
# macos-latest does not works either, so we are using windows-latest until ubuntu 24.04 is available
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install asymptote
run: choco install asymptote
- name: Setup package registry
run: |
npm config set @olinfo:registry https://git.olinfo.it/api/packages/bortoz/npm/
npm config set -- '//git.olinfo.it/api/packages/bortoz/npm/:_authToken' "${{ secrets.GITEA_TOKEN }}"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist