diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..14d1e1b4 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish to crates.io + +on: + push: + tags: ['v*'] # Triggers when pushing version tags + +jobs: + publish: + runs-on: ubuntu-latest + # environment: release # Optional: for enhanced security + permissions: + id-token: write # Required for OIDC token exchange + steps: + - uses: actions/checkout@v4 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: | + cd . + cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b7467a3..dfe41067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Upcoming version +## \[v0.17.0\] ### Added diff --git a/Cargo.toml b/Cargo.toml index 69d5406c..d13f7bcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vm-memory" -version = "0.16.1" +version = "0.17.0" description = "Safe abstractions for accessing the VM physical memory" keywords = ["memory"] categories = ["memory-management"] @@ -49,4 +49,4 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [package.metadata.cargo-all-features] -skip_optional_dependencies = true \ No newline at end of file +skip_optional_dependencies = true