diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b93522e..08b7c10b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,23 @@ jobs: name: Release-plz runs-on: ubuntu-latest steps: + # Generating a GitHub token, so that PRs and tags created by + # the release-plz-action can trigger actions workflows. + - name: Generate GitHub token + uses: actions/create-github-app-token@v1 + id: generate-token + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Run release-plz - uses: MarcoIeni/release-plz-action@v0.5 + uses: MarcoIeni/release-plz-action@main env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/crates/lox-space/pyproject.toml b/crates/lox-space/pyproject.toml index 253553f5..44df491b 100644 --- a/crates/lox-space/pyproject.toml +++ b/crates/lox-space/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "lox-space" -version = "0.1.0a0" requires-python = ">=3.7" classifiers = [ "Programming Language :: Rust", @@ -10,6 +9,7 @@ classifiers = [ dependencies = [ "numpy < 2" ] +dynamic = ["version"] [project.optional-dependencies] dev = [