This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
name: Meson Build and Deploy
|
name: Build and Deploy Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["lisp"]
|
branches: [ lisp ] # or your default branch
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -12,13 +11,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
tokens: ${{ secrets.GITEA_TOKEN }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y meson ninja-build gcc
|
sudo apt-get install -y meson ninja-build gcc doxygen graphviz
|
||||||
|
|
||||||
- name: Configure Meson
|
- name: Configure Meson
|
||||||
run: meson setup build
|
run: meson setup build
|
||||||
@@ -29,19 +26,10 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: meson test -C build --print-errorlogs || true
|
run: meson test -C build --print-errorlogs || true
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: beluga
|
|
||||||
path: build/
|
|
||||||
|
|
||||||
- name: Install Doxygen
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz
|
|
||||||
|
|
||||||
- name: Build Doxygen Docs
|
- name: Build Doxygen Docs
|
||||||
run: doxygen Doxyfile
|
run: doxygen Doxyfile
|
||||||
|
|
||||||
- name: Deploy to Pages
|
- name: Deploy to Pages branch
|
||||||
run: |
|
run: |
|
||||||
git config user.name "CI Bot"
|
git config user.name "CI Bot"
|
||||||
git config user.email "ci-bot@homelinuxserver"
|
git config user.email "ci-bot@homelinuxserver"
|
||||||
@@ -52,4 +40,3 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -m "Update docs" || echo "No changes to commit"
|
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
|
git push https://$USERNAME:${{ secrets.GITEA_TOKEN }}@homelinuxserver.ddns.net/git/<username>/<repo>.git pages --force
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user