Make node iterators compatible with different value type const-ness (… #78
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: PublishDocs | |
# make the documentation up to date with the develop branch | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- .github/workflows/publish_docs.yml | |
- docs/examples/** | |
- docs/mkdocs/** | |
workflow_dispatch: | |
# no cancellation during uploads to avoid broken publications | |
concurrency: | |
group: documentation | |
cancel-in-progress: false | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
if: github.repository == 'fktn-k/fkYAML' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build examples | |
run: | | |
cmake -B ${{github.workspace}}/build -S ${{github.workspace}} -DCMAKE_BUILD_TYPE=Debug -DFK_YAML_BUILD_EXAMPLES=ON | |
cmake --build ${{github.workspace}}/build --config Debug | |
- name: Build documentation | |
run: make -C docs/mkdocs build | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload API documents | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ${{github.workspace}}/docs/mkdocs/site | |
deploy: | |
if: github.repository == 'fktn-k/fkYAML' | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{steps.deployment.outputs.page_url}} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |