0
0
Fork 0

adapt release to completion generation

This commit is contained in:
Adrian Wannenmacher 2023-09-24 14:58:17 +02:00
parent 3e5104abe1
commit cccc8de834
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
3 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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")?
};