Typed adapters (#1047) #19
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: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| if: github.repository_owner == 'bluesky' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| fail-fast: false | |
| steps: | |
| - name: Set env.REPOSITORY_NAME # just the repo, as opposed to org/repo | |
| shell: bash -l {0} | |
| run: | | |
| export REPOSITORY_NAME=${GITHUB_REPOSITORY#*/} | |
| echo "REPOSITORY_NAME=${REPOSITORY_NAME}" >> $GITHUB_ENV | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1000 # should be enough to reach the most recent tag | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install tiled | |
| run: uv sync --all-extras | |
| - name: Build Docs | |
| shell: bash -l {0} | |
| run: uv run make -C docs/ html | |
| - name: Deploy documentation to blueskyproject.io. | |
| # We pin to the SHA, not the tag, for security reasons. | |
| # https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions | |
| uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3 | |
| with: | |
| deploy_key: ${{ secrets.ACTIONS_DOCUMENTATION_DEPLOY_KEY }} | |
| publish_branch: master | |
| publish_dir: ./docs/build/html | |
| external_repository: bluesky/bluesky.github.io | |
| destination_dir: ${{ env.REPOSITORY_NAME }} # just the repo name, without the "bluesky/" | |
| keep_files: true # Keep old files. | |
| force_orphan: false # Keep git history. |