diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml new file mode 100644 index 0000000000..68d9f987a5 --- /dev/null +++ b/.github/workflows/release-plz.yml @@ -0,0 +1,68 @@ +name: Release-plz + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +jobs: + + # Release unpublished packages. + release-plz-release: + name: Release-plz release + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + with: + command: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + # Create a PR with the new versions and changelog, preparing the next release. + release-plz-pr: + name: Release-plz PR + runs-on: ubuntu-latest + concurrency: + group: release-plz-${{ github.ref }} + cancel-in-progress: false + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Nightly Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2024-05-20 + override: true + working-directory: crates/bevy_api_gen + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 500cf0cb2e..01b32df621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# bevy_mod_scripting Changelog +# Changelog ## v0.2.2 - Bump `tealr_doc_gen` and `tealr` versions - Change bevy dependency semver to "0.9" diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000000..54745f8a24 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,40 @@ +[workspace] +dependencies_update = false +publish_timeout = "30m" + +[[package]] +name = "bevy_mod_scripting_lua" +publish_features = ["lua54"] +version_group = "main" + +[[package]] +name = "bevy_mod_scripting_common" +version_group = "main" + +[[package]] +name = "bevy_mod_scripting_core" +version_group = "main" + +[[package]] +name = "bevy_mod_scripting_rhai" +version_group = "main" + +[[package]] +name = "bevy_mod_scripting_rune" +version_group = "main" + +[[package]] +name = "bevy_script_api" +version_group = "main" + +[[package]] +name = "bevy_event_priority" +version_group = "main" + +[[package]] +name = "bevy_mod_scripting_lua_derive" +version_group = "main" + +[[package]] +name = "bevy_mod_scripting_rhai_derive" +version_group = "main"