Skip to content

Commit

Permalink
chore: run release only when build is successfull
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 28, 2024
1 parent 44ee180 commit a38de71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
- name: Cargo Clippy
run: cargo +nightly clippy --all-features --workspace -- -D warnings
release:
needs:
- build
name: Release
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions crates/gh-workflow/tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fn generate() {
.contents(Level::Write);

let release = Job::new("Release")
.add_needs(build.clone())
.add_env(Env::github())
.add_env(Env::new(
"CARGO_REGISTRY_TOKEN",
Expand Down

0 comments on commit a38de71

Please sign in to comment.