diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b015641..74b754e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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/