Skip to content

Commit 006000c

Browse files
committed
ci: add release into the build job
1 parent 04bf5ad commit 006000c

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,8 @@ jobs:
4949
run: cargo +nightly fmt --check
5050
- name: Cargo Clippy
5151
run: cargo +nightly clippy --all-features --workspace -- -D warnings
52-
release:
53-
needs: build
54-
name: Release
55-
runs-on: ubuntu-latest
56-
steps:
5752
- run: find . -name Cargo.toml
5853
- name: Release Plz
5954
uses: MarcoIeni/[email protected]
6055
with:
6156
command: release-pr
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

workspace/gh-workflow-gen/build.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ fn main() {
3030
.nightly()
3131
.args("--all-features --workspace -- -D warnings")
3232
.name("Cargo Clippy"),
33-
);
33+
)
34+
.add_step(Step::run("find . -name Cargo.toml"))
35+
.add_step(ReleasePlz::default().command(Command::ReleasePR));
3436

3537
let event = Event::default()
3638
.push(Push::default().add_branch("main"))
@@ -42,18 +44,11 @@ fn main() {
4244
.add_branch("main"),
4345
);
4446

45-
let release = Job::new("Release")
46-
.add_github_token()
47-
.add_step(Step::run("find . -name Cargo.toml"))
48-
.add_step(ReleasePlz::default().command(Command::ReleasePR))
49-
.needs("build");
50-
5147
Workflow::new("Build and Test")
5248
.add_env(flags)
5349
.permissions(Permissions::read())
5450
.on(event)
5551
.add_job("build", job)
56-
.add_job("release", release)
5752
.generate()
5853
.unwrap();
5954
}

0 commit comments

Comments
 (0)