ci: build site via the toolchain scripts

Assisted-by: Delta:zai-glm-5.3
This commit is contained in:
Klagarge committed 2026-10-10 21:02:41 +02:00
1 parent 62c4619c5e
commit 36b2fc4188
1 file changed
+10 -23
+10 -23
View File
@@ -1,36 +1,23 @@
name: Build Site
on:
push:
branches:
- calepin-migration
name: Build site
on: push
jobs:
build:
# NOTE: must match your act_runner labels (e.g. ubuntu-latest, ubuntu-24.04).
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4
- name: Install just
run: |
wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
sudo apt update
sudo apt install just
# Alternative, as `just` might not be needed for simple CI if we run scripts directly, but we want to test the workflow
# Actually a simpler way to install just: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
- name: Install just (simple)
run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
- name: Install toolchain
run: just tools
- name: Bootstrap pinned toolchain
run: ./scripts/bootstrap.sh
- name: Build site
run: just build
run: ./scripts/calepin.sh compile site public
- name: Upload artifact
- name: Upload site artifact
uses: actions/upload-artifact@v4
with:
name: site-public
name: public
path: public/