diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 30c1485..24a009a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,8 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: release: + permissions: + id-token: write runs-on: ubuntu-latest environment: ${{ github.ref == 'refs/heads/main' && 'release' || '' }} steps: @@ -17,7 +19,9 @@ jobs: submodules: true - uses: raviqqe/cargo-cache@v1 - run: cargo install cargo-workspaces - - run: cargo workspaces publish -y --from-git - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - uses: rust-lang/crates-io-auth-action@v1 + id: auth if: github.ref == 'refs/heads/main' + - run: cargo workspaces publish -y --from-git ${{ github.ref != 'refs/heads/main' && '--dry-run' || '' }} + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/Cargo.lock b/Cargo.lock index d9c343f..c4a5177 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 4 [[package]] name = "array-queue" -version = "0.4.1" +version = "0.4.2" diff --git a/Cargo.toml b/Cargo.toml index a904d2f..782881d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,6 @@ [package] name = "array-queue" -version = "0.4.1" -authors = ["Yota Toyama "] +version = "0.4.2" edition = "2024" description = "Fixed size bidirectional queues based on arrays" license = "MIT"