Prepare release tarball in separate script
This commit is contained in:
parent
2ccf17230f
commit
997b76de7d
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
override: true
|
override: true
|
||||||
- run: cargo install cargo-deb
|
- run: cargo install cargo-deb
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
- run: ./build-manpages.sh
|
- run: ./prepare-release.sh
|
||||||
- run: cargo deb
|
- run: cargo deb
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -40,13 +40,10 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo install mdsh mandown
|
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
- run: ./build-manpages.sh
|
- run: ./prepare-release.sh
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: git-mob-${{ matrix.os }}
|
name: git-mob-${{ matrix.os }}
|
||||||
path: |
|
path: |
|
||||||
target/release/git-*
|
ci-release/git-mob
|
||||||
target/man
|
|
||||||
!target/release/*.d
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir -p target/man
|
|
||||||
for page in git-{mob,solo,{add,edit,delete}-coauthor}.1; do
|
|
||||||
gzip --to-stdout target/release/$page > target/man/$page.gz
|
|
||||||
done
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/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
|
||||||
|
done
|
||||||
Loading…
Reference in New Issue