Skip to content

bash shell (#282)

bash shell (#282) #103

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