site

A custom static site generator written in C.
git clone https://unitehenry.com/git/site.git
Log | Files | Refs | README

commit e4e604ee03741b8183647ec7c46200858423c6c6
parent 1078e792c8813506205d368ff403fbe95dd970f6
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 12 Apr 2026 23:01:10 +0000

ci: build and deploy

Diffstat:
M.github/workflows/main.yml | 45+++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -61,3 +61,48 @@ jobs: - name: Run test run: ./scripts/test + + build: + runs-on: ubuntu-latest + needs: [test] + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Install gcc + run: | + sudo apt-get update + sudo apt-get install -y build-essential gcc g++ + + - name: Setup Pandoc + uses: pandoc/actions/setup@v1 + + - name: Make scripts executable + run: chmod +x scripts/generate + + - name: Run test + run: ./scripts/test + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + name: github-pages + path: build + + deploy: + runs-on: ubuntu-latest + needs: [build] + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4