feat(config): add task executor ring capacity macro #104
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: "true" | |
| fetch-depth: 0 | |
| - name: Inject version into mainpage.dox | |
| run: | | |
| TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0-untagged") | |
| TAG=$(echo "$TAG" | sed 's/^v//') | |
| echo "Using version: $TAG" | |
| test -f docs/mainpage.dox || { echo "mainpage.dox not found!"; exit 1; } | |
| sed -i "0,/VERSION_PLACEHOLDER/s//$TAG/" docs/mainpage.dox | |
| - name: Generate Documentation | |
| uses: mattnotmitt/doxygen-action@edge | |
| - name: Check for documentation changes | |
| id: docs_changed | |
| run: | | |
| if git diff --quiet -- docs/html; then | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Publish generated content to GitHub Pages | |
| if: steps.docs_changed.outputs.changed == 'true' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.ACCESS_TOKEN }} | |
| publish_dir: docs/html | |
| publish_branch: gh-pages |