-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (35 loc) · 853 Bytes
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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