diff --git a/.github/workflows/cratesio-release.yml b/.github/workflows/cratesio-release.yml new file mode 100644 index 00000000..9716ab32 --- /dev/null +++ b/.github/workflows/cratesio-release.yml @@ -0,0 +1,17 @@ +# See https://crates.io/docs/trusted-publishing +name: Publish to crates.io +on: + push: + tags: ['v*', '[0-9]*'] # Triggers on version tags (e.g. v0.4.46 or 0.4.46) +jobs: + publish: + runs-on: ubuntu-24.04 + permissions: + id-token: write # Required for OIDC token exchange + steps: + - uses: actions/checkout@v6 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/Cargo.toml b/Cargo.toml index 9094b171..258f3abd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tar" -version = "0.4.45" +version = "0.4.46" authors = ["Alex Crichton "] homepage = "https://github.com/composefs/tar-rs" repository = "https://github.com/composefs/tar-rs"