Adds guide for using symbol.flag to docs #197
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: Upload Python Package | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - develop | |
| pull_request: | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Dump GitHub context | |
| env: | |
| GITHUB_CONTEXT: ${{ toJson(github) }} | |
| run: echo "$GITHUB_CONTEXT" | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.ref || github.ref }} | |
| - name: Setup backend | |
| uses: ./.github/actions/setup-backend | |
| with: | |
| python-version: "3.12" | |
| - name: Get history and tags for SCM versioning to work | |
| run: | | |
| git branch | |
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
| # TODO: add cbuildwheel cache | |
| - name: Build release distributions | |
| run: uv build --wheel | |
| env: | |
| HATCH_BUILD_HOOKS_ENABLE: true | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: dist/ | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build-wheels | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup backend | |
| uses: ./.github/actions/setup-backend | |
| - name: Download All Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| pattern: wheels-* | |
| - name: Release PyPI | |
| run: | | |
| export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}" | |
| export UV_PUBLISH_USERNAME="__token__" | |
| uv publish --publish-url https://upload.pypi.org/legacy/ --keyring-provider disabled | |
| - name: Make github release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true |