Prepare binary release directly in CI flow
This commit is contained in:
parent
504ff5da53
commit
9b5ad75890
|
|
@ -13,7 +13,6 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- run: cargo install cargo-deb
|
- run: cargo install cargo-deb
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
- run: ./prepare-release.sh
|
|
||||||
- run: cargo deb
|
- run: cargo deb
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,15 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
- run: ./prepare-release.sh
|
- name: prepare release artifact
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir target/{bin,man}
|
||||||
|
cp target/release/*.1 target/man
|
||||||
|
cp target/release/git-{mob,solo,{add,edit,delete}-coauthor} target/bin
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: git-mob-${{ matrix.os }}
|
name: git-mob-${{ matrix.os }}
|
||||||
path: |
|
path: |
|
||||||
ci-release/git-mob
|
target/bin
|
||||||
|
target/man
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
OUT_DIR=ci-release/git-mob
|
|
||||||
mkdir -p $OUT_DIR/{bin,man}
|
|
||||||
|
|
||||||
for binary in git-{mob,solo,{add,edit,delete}-coauthor}; do
|
|
||||||
gzip --to-stdout target/release/$binary.1 > $OUT_DIR/man/$binary.gz
|
|
||||||
cp target/release/$binary $OUT_DIR/bin/$binary
|
|
||||||
cp README.md $OUT_DIR/README.md
|
|
||||||
done
|
|
||||||
Loading…
Reference in New Issue