Remove debugging PATH (Windows) #105
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: Build doxygen pages and publish to github pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
container: | |
# relies on repository name being all lower case | |
image: ghcr.io/${{ github.repository }} | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure CMake | |
run: | | |
git config --global --add safe.directory ${{github.workspace}} | |
cmake -B ${{github.workspace}}/build | |
- name: Build | |
run: | | |
git config --global --add safe.directory ${{github.workspace}} | |
cmake --build ${{github.workspace}}/build --target sjef-doc | |
rsync -av ${{github.workspace}}/build/html . | |
mkdir -p html/DoxygenTagFiles | |
find ${{github.workspace}}/build -name '*.tag' -exec cp {} html/DoxygenTagFiles \; | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./html |