feat(core): add section events and block state machine (#6) #5
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 Documentation | |
| on: | |
| push: | |
| paths: | |
| - .github/workflows/docs.yaml | |
| - docs/** | |
| - mkdocs.yml | |
| - requirements-docs.txt | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - released | |
| - prereleased | |
| jobs: | |
| prepare: | |
| name: Get Current version | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.version.outputs.value }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Find Latest Tag | |
| id: latest_tag | |
| uses: oprypin/find-latest-tag@dd2729fe78b0bb55523ae2b2a310c6773a652bd1 # v1.1.2 | |
| with: | |
| repository: ${{ github.repository }} | |
| regex: '^v\d+\.\d+\.\d+$' | |
| - name: Extract major and minor version | |
| id: version | |
| run: | | |
| echo "value=`echo ${{ steps.latest_tag.outputs.tag }} | sed -r 's|([0-9]+.[0-9]+).*|\1|g'`" >> $GITHUB_OUTPUT | |
| - name: Computed Doc Version | |
| run: echo ${{ steps.version.outputs.value }} | |
| publish-docs: | |
| name: Publish Docs | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - prepare | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: "Import GPG key" | |
| id: import-gpg | |
| uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6 | |
| with: | |
| gpg_private_key: ${{ secrets.HOTHER_BOT_GPG_KEY }} | |
| passphrase: ${{ secrets.HOTHER_BOT_GPG_PASSPHRASE }} | |
| git_user_signingkey: true | |
| git_commit_gpgsign: true | |
| - name: Configurating Git | |
| run: | | |
| git config user.email "${{ steps.import-gpg.outputs.email }}" | |
| git config user.name "${{ steps.import-gpg.outputs.name }}" | |
| git config core.autocrlf false | |
| git config commit.gpgsign true | |
| - name: Setup Python and uv | |
| uses: ./.github/actions/setup-python-uv | |
| with: | |
| dependency-groups: doc | |
| - name: Publish | |
| run: | | |
| uv run mike deploy --push --update-aliases "${{ needs.prepare.outputs.version }}" latest | |
| uv run mike deploy --push --update-aliases "${{ needs.prepare.outputs.version }}" docs |