mirror of
https://github.com/TeFiLeDo/tree-owners.git
synced 2024-12-21 17:36:55 +01:00
adapt release to completion generation
This commit is contained in:
parent
3e5104abe1
commit
cccc8de834
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -23,6 +23,8 @@ jobs:
|
||||
run: cargo build --release --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --release --verbose
|
||||
- name: Adjust compiler output
|
||||
run: mv ci-out/_tree-owners ci-out/tree-owners.zsh
|
||||
- name: Publish to crates.io
|
||||
run: cargo publish
|
||||
env:
|
||||
@ -35,3 +37,6 @@ jobs:
|
||||
files: |
|
||||
LICENSE
|
||||
target/release/tree-owners
|
||||
../ci-out/tree-owners.bash
|
||||
../ci-out/tree-owners.fish
|
||||
../ci-out/tree-owners.zsh
|
||||
|
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -30,6 +30,6 @@ jobs:
|
||||
files: |
|
||||
LICENSE
|
||||
target/debug/tree-owners
|
||||
ci-out/tree-owners.bash
|
||||
ci-out/tree-owners.fish
|
||||
ci-out/tree-owners.zsh
|
||||
../ci-out/tree-owners.bash
|
||||
../ci-out/tree-owners.fish
|
||||
../ci-out/tree-owners.zsh
|
||||
|
4
build.rs
4
build.rs
@ -11,8 +11,8 @@ include!("src/cli.rs");
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let out = if env::var("CI").map(|ci| ci == "true").unwrap_or_default() {
|
||||
create_dir("ci-out").context("failed to create CI output directory")?;
|
||||
"./ci-out".to_string()
|
||||
create_dir("../ci-out").context("failed to create CI output directory")?;
|
||||
"../ci-out".to_string()
|
||||
} else {
|
||||
env::var("OUT_DIR").context("OUT_DIR not set")?
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user