Increase version #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |