Cache tokens in parser to avoid repeated database queries (#220) #318
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: | |
| branches: | |
| - main | |
| - "release/*" | |
| tags: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - "release/*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: release-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| test: | |
| uses: ./.github/workflows/test.yml | |
| if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} | |
| with: | |
| os: "macos-latest,ubuntu-latest,windows-latest" | |
| release: | |
| runs-on: ubuntu-latest | |
| if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} | |
| needs: [build, test] | |
| environment: release | |
| permissions: | |
| # Use to sign the release artifacts | |
| id-token: write | |
| # Used to upload release artifacts | |
| contents: write | |
| # Used to generate artifact attestation | |
| attestations: write | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| - name: Generate artifact attestation | |
| uses: actions/attest-build-provenance@v3 | |
| with: | |
| subject-path: "wheels-*/*" | |
| - name: Publish to PyPI | |
| uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 | |
| with: | |
| command: upload | |
| args: --non-interactive --skip-existing wheels-*/* |