37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
name: Build Site
|
|
on:
|
|
push:
|
|
branches:
|
|
- calepin-migration
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
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: Build site
|
|
run: just build
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: site-public
|
|
path: public/
|