Skip to content

Commit 65ffefc

Browse files
authored
Integrate Release Plz (#133)
* release plz * install all toolchains
1 parent d025dbd commit 65ffefc

File tree

3 files changed

+109
-1
lines changed

3 files changed

+109
-1
lines changed

.github/workflows/release-plz.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Release-plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
14+
# Release unpublished packages.
15+
release-plz-release:
16+
name: Release-plz release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Install Rust toolchain
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
profile: minimal
27+
toolchain: stable
28+
override: true
29+
- name: Run release-plz
30+
uses: MarcoIeni/release-plz-action@v0.5
31+
with:
32+
command: release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
36+
37+
# Create a PR with the new versions and changelog, preparing the next release.
38+
release-plz-pr:
39+
name: Release-plz PR
40+
runs-on: ubuntu-latest
41+
concurrency:
42+
group: release-plz-${{ github.ref }}
43+
cancel-in-progress: false
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 0
49+
- name: Install Nightly Rust toolchain
50+
uses: actions-rs/toolchain@v1
51+
with:
52+
profile: minimal
53+
toolchain: nightly-2024-05-20
54+
override: true
55+
working-directory: crates/bevy_api_gen
56+
- name: Install Rust toolchain
57+
uses: actions-rs/toolchain@v1
58+
with:
59+
profile: minimal
60+
toolchain: stable
61+
override: true
62+
- name: Run release-plz
63+
uses: MarcoIeni/release-plz-action@v0.5
64+
with:
65+
command: release-pr
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bevy_mod_scripting Changelog
1+
# Changelog
22
## v0.2.2
33
- Bump `tealr_doc_gen` and `tealr` versions
44
- Change bevy dependency semver to "0.9"

release-plz.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[workspace]
2+
dependencies_update = false
3+
publish_timeout = "30m"
4+
5+
[[package]]
6+
name = "bevy_mod_scripting_lua"
7+
publish_features = ["lua54"]
8+
version_group = "main"
9+
10+
[[package]]
11+
name = "bevy_mod_scripting_common"
12+
version_group = "main"
13+
14+
[[package]]
15+
name = "bevy_mod_scripting_core"
16+
version_group = "main"
17+
18+
[[package]]
19+
name = "bevy_mod_scripting_rhai"
20+
version_group = "main"
21+
22+
[[package]]
23+
name = "bevy_mod_scripting_rune"
24+
version_group = "main"
25+
26+
[[package]]
27+
name = "bevy_script_api"
28+
version_group = "main"
29+
30+
[[package]]
31+
name = "bevy_event_priority"
32+
version_group = "main"
33+
34+
[[package]]
35+
name = "bevy_mod_scripting_lua_derive"
36+
version_group = "main"
37+
38+
[[package]]
39+
name = "bevy_mod_scripting_rhai_derive"
40+
version_group = "main"

0 commit comments

Comments
 (0)