43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build and Deploy Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [ lisp ] # or your default branch
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: home-1
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y meson ninja-build gcc doxygen graphviz
|
|
|
|
- name: Configure Meson
|
|
run: meson setup build
|
|
|
|
- name: Build project
|
|
run: meson compile -C build
|
|
|
|
- name: Run tests
|
|
run: meson test -C build --print-errorlogs || true
|
|
|
|
- name: Build Doxygen Docs
|
|
run: doxygen Doxyfile
|
|
|
|
- name: Deploy to Pages branch
|
|
run: |
|
|
git config user.name "CI Bot"
|
|
git config user.email "ci-bot@homelinuxserver"
|
|
git fetch origin
|
|
git checkout --orphan pages
|
|
git rm -rf .
|
|
cp -r docs/html/* .
|
|
git add .
|
|
git commit -m "Update docs" || echo "No changes to commit"
|
|
git push https://$USERNAME:${{ secrets.GITEA_TOKEN }}@homelinuxserver.ddns.net/git/<username>/<repo>.git pages --force
|