diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..aaca5e1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish to crates.io + +on: + push: + tags: ['v*'] + +env: + CARGO_TERM_COLOR: always + +jobs: + publish: + + runs-on: ubuntu-latest + + 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: cargo publish -p immediate_stats_macros + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + - run: cargo publish -p immediate_stats + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/Cargo.lock b/Cargo.lock index 474e4fa..1674502 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -905,7 +905,7 @@ checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" [[package]] name = "immediate_stats" -version = "0.1.2" +version = "0.1.3" dependencies = [ "bevy", "bevy-butler", @@ -917,7 +917,7 @@ dependencies = [ [[package]] name = "immediate_stats_macros" -version = "0.1.2" +version = "0.1.3" dependencies = [ "darling", "proc-macro-error", diff --git a/immediate_stats/Cargo.toml b/immediate_stats/Cargo.toml index 537aa4b..ff37ce1 100644 --- a/immediate_stats/Cargo.toml +++ b/immediate_stats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats" -version = "0.1.2" +version = "0.1.3" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode rendering." categories = ["game-development", "data-structures"] @@ -26,7 +26,7 @@ bevy_ecs = { version = "0.16.0", default-features = false, optional = true, feat "bevy_reflect", ] } bevy_reflect = { version = "0.16.0", default-features = false, optional = true } -immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.1.0", default-features = false } +immediate_stats_macros = { path = "../immediate_stats_macros", version = "0.1.3", default-features = false } [dev-dependencies] bevy = { version = "0.16.0", default-features = false } diff --git a/immediate_stats_macros/Cargo.toml b/immediate_stats_macros/Cargo.toml index 7c61903..f18803e 100644 --- a/immediate_stats_macros/Cargo.toml +++ b/immediate_stats_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "immediate_stats_macros" -version = "0.1.2" +version = "0.1.3" edition = "2024" description = "Game stats that reset every frame, inspired by immediate mode rendering." categories = ["game-development", "data-structures"]