Skip to content

Use macos runner

Use macos runner #12

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, so we are using macos-latest until ubuntu 24.04 is available
runs-on: macos-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: brew install asymptote pdf2svg
- 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