chore: bump python for next release #3799
Workflow file for this run
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: docs | |
| on: | |
| merge_group: | |
| pull_request: | |
| paths: | |
| - python/** | |
| - docs/** | |
| - mkdocs.yml | |
| - .github/workflows/docs.yml | |
| repository_dispatch: | |
| types: | |
| - release-docs | |
| # Allow manual trigger for now | |
| workflow_dispatch: | |
| env: | |
| IS_RELEASE: ${{ github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' }} | |
| BUILD_ARGS: ${{ (github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch') && 'install MATURIN_EXTRA_ARGS="--manylinux off"' || 'develop' }} | |
| jobs: | |
| markdown-link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # v6.0.2 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| # <https://github.com/tcort/markdown-link-check/releases/tag/v3.14.2> | |
| - uses: tcort/github-action-markdown-link-check@e7c7a18363c842693fadde5d41a3bd3573a7a225 | |
| with: | |
| config-file: "docs/mlc_config.json" | |
| folder-path: docs | |
| base-branch: main | |
| use-quiet-mode: yes | |
| check-modified-files-only: yes | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # v6.0.2 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - run: | | |
| cd docs | |
| make check | |
| build-deploy: | |
| needs: [lint, markdown-link-check] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| # v6.0.2 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup-env | |
| - name: Build and install deltalake | |
| run: | | |
| cd python | |
| python -m venv venv | |
| source venv/bin/activate | |
| python -m pip install --upgrade pip | |
| make ${{ env.BUILD_ARGS }} | |
| - name: Install dependencies | |
| run: | | |
| source python/venv/bin/activate | |
| pip install -r docs/requirements.txt | |
| - name: Get changelog for docs | |
| run: | | |
| cd .github/scripts/ | |
| ./docs_changelog.sh | |
| - name: Build | |
| run: | | |
| source python/venv/bin/activate | |
| mkdocs build | |
| - name: Deploy | |
| if: ${{ env.IS_RELEASE == 'true' }} | |
| # <https://github.com/JamesIves/github-pages-deploy-action/releases/tag/v4.8.0> | |
| uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f | |
| with: | |
| folder: site | |
| clean-exclude: | | |
| python/ | |
| .nojekyll | |
| single-commit: false | |
| git-config-name: "Github Action" | |
| git-config-email: "deltars@users.noreply.github.com" | |
| commit-message: "doc update for tag `${{ github.event.client_payload.tag || github.ref_name }}`" |