0
0
mirror of https://github.com/TeFiLeDo/tree-owners.git synced 2024-11-21 20:06:17 +01:00

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 run: cargo build --release --verbose
- name: Run tests - name: Run tests
run: cargo test --release --verbose 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 - name: Publish to crates.io
run: cargo publish run: cargo publish
env: env:
@ -35,3 +37,6 @@ jobs:
files: | files: |
LICENSE LICENSE
target/release/tree-owners 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: | files: |
LICENSE LICENSE
target/debug/tree-owners target/debug/tree-owners
ci-out/tree-owners.bash ../ci-out/tree-owners.bash
ci-out/tree-owners.fish ../ci-out/tree-owners.fish
ci-out/tree-owners.zsh ../ci-out/tree-owners.zsh

View File

@ -11,8 +11,8 @@ include!("src/cli.rs");
fn main() -> Result<()> { fn main() -> Result<()> {
let out = if env::var("CI").map(|ci| ci == "true").unwrap_or_default() { let out = if env::var("CI").map(|ci| ci == "true").unwrap_or_default() {
create_dir("ci-out").context("failed to create CI output directory")?; create_dir("../ci-out").context("failed to create CI output directory")?;
"./ci-out".to_string() "../ci-out".to_string()
} else { } else {
env::var("OUT_DIR").context("OUT_DIR not set")? env::var("OUT_DIR").context("OUT_DIR not set")?
}; };