Skip to content

Update dependency

Update dependency #109

Workflow file for this run

name: Publish documentation
on:
push:
branches:
- master
- pkg-refactor
jobs:
publish-docs:
name: Publish documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dotnet Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Update docfx
run: dotnet tool update -g docfx
- name: Build documentation
run: |
sh docfx/build_gh.sh
- name: Publish to GitHub Pages
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git clone https://${{ secrets.PERSONAL_TOKEN }}@github.com/sk-zk/sk-zk.github.io.git
cd sk-zk.github.io
rm -rf trucklib
mkdir -p trucklib/master
cp -r ../docfx/_site/* trucklib/master
git add .
git diff-index --quiet HEAD || git commit -m "Update TruckLib documentation"
git push