From 079a56670dc219492d953c92f904ceccc835304b Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Wed, 3 Sep 2025 11:34:56 -0700 Subject: [PATCH 1/2] Create publish.yml --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yml 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 }} From 4b0896e3a7b1d18db2f40c17d04d85841ce37526 Mon Sep 17 00:00:00 2001 From: AlephCubed Date: Wed, 3 Sep 2025 11:35:15 -0700 Subject: [PATCH 2/2] Updated version number. --- Cargo.lock | 4 ++-- immediate_stats/Cargo.toml | 4 ++-- immediate_stats_macros/Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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"]