bug/ci: fix debian file generation breaking completions (#645)

Fixes completion file generation being broken while the .deb file is made, due to using an incorrect path.
This commit is contained in:
Clement Tsang
2021-12-27 13:49:15 -08:00
committed by GitHub
parent cf08f935dc
commit c92cfc644d
3 changed files with 32 additions and 12 deletions
+15 -3
View File
@@ -326,10 +326,22 @@ jobs:
with:
key: x86_64-unknown-linux-gnu-deb
- name: Build Debian release (Linux x86-64 GNU)
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --features "battery"
- name: Move autocomplete to working directory
shell: bash
run: |
cargo install cargo-deb --version 1.29.0 --locked
cargo deb
mkdir completion
cp -r ./target/release/build/bottom-*/out/. completion
- name: Build Debian release
run: |
cargo install cargo-deb --version 1.34.0 --locked
cargo deb --no-build
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
- name: Create release directory for artifact, move file
+14 -2
View File
@@ -313,10 +313,22 @@ jobs:
with:
key: x86_64-unknown-linux-gnu-deb
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --features "battery"
- name: Move autocomplete to working directory
shell: bash
run: |
mkdir completion
cp -r ./target/release/build/bottom-*/out/. completion
- name: Build Debian release
run: |
cargo install cargo-deb --version 1.29.0 --locked
cargo deb
cargo install cargo-deb --version 1.34.0 --locked
cargo deb --no-build
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
- name: Create release directory for artifact, move file