Skip to content

Commit 8574a44

Browse files
mockersfItsDoot
authored andcommitted
Bevy release train - add a workflow to manually create a PR updating Bevy version (bevyengine#3283)
# Objective - Ensure future Bevy releases happens smoothly ## Solution - Add a workflow that will open a PR updating all Bevy crate that can be created manually example PR opened: mockersf#62 The day from this PR does not need to be the release day, it will just open the PR to prepare it. Later if we feel confident, it could push automatically to crates.io. how to trigger the workflow: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
1 parent ae6e3db commit 8574a44

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
3+
# how to trigger: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
4+
on:
5+
workflow_dispatch:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
ci:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Install cargo-release
17+
run: cargo install cargo-release
18+
19+
- name: Setup release
20+
run: |
21+
git config user.name 'Bevy Auto Releaser'
22+
git config user.email '[email protected]'
23+
# --workspace: updating all crates in the workspace
24+
# --no-publish: do not publish to crates.io
25+
# --execute: not a dry run
26+
# --no-tag: do not push tag for each new version
27+
# --no-push: do not push the update commits
28+
# --exclude: ignore those packages
29+
cargo release minor \
30+
--workspace \
31+
--no-publish \
32+
--execute \
33+
--no-tag \
34+
--no-confirm \
35+
--no-push \
36+
--exclude ci \
37+
--exclude errors \
38+
--exclude bevy-ios-example
39+
40+
- name: Create PR
41+
uses: peter-evans/create-pull-request@v3
42+
with:
43+
delete-branch: true
44+
base: "main"
45+
title: "Preparing Next Release"
46+
body: |
47+
Preparing next release
48+
This PR has been auto-generated

0 commit comments

Comments
 (0)