Skip to content

Site

Site #9

Workflow file for this run

name: Site
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-24.04 # needed for up to date asciiinema
environment:
name: site
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: |
sudo apt-get install -y asciinema pv
./site/build.sh
env:
ASCIINEMA_INSTALL_ID: ${{ secrets.ASCIINEMA_INSTALL_ID }}
- uses: actions/upload-pages-artifact@v3
with:
path: site/out
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: site
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4