Fix site_url for readthedocs 404 #225
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: Release | |
| on: [push, pull_request] | |
| jobs: | |
| build_artifacts: | |
| name: Build wheel on ubuntu-latest | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5.2.0 | |
| name: Install Python | |
| with: | |
| python-version: "3.11" | |
| - name: Install PyBuild | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install hatch | |
| - name: Build wheel and sdist | |
| run: hatch build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: releases | |
| path: dist | |
| test_dist_pypi: | |
| needs: [build_artifacts] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: releases | |
| path: dist | |
| - name: test | |
| run: | | |
| ls | |
| ls dist | |
| upload_pypi: | |
| needs: [build_artifacts] | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| # IMPORTANT: this permission is mandatory for Trusted Publishing | |
| id-token: write | |
| if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: releases | |
| path: dist | |
| - name: Publish package distributions to PyPI | |
| uses: pypa/gh-action-pypi-publish@v1.12.4 |