summaryrefslogtreecommitdiffstats
path: root/.github/workflows/deployment.yml
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2021-12-27 13:49:15 -0800
committerGitHub <noreply@github.com>2021-12-27 16:49:15 -0500
commitc92cfc644d0601fad89312b5b282c4e3ebbcc072 (patch)
tree10547c5fba6cb7227c24b32ed3449a5860793ec4 /.github/workflows/deployment.yml
parentcf08f935dcf1d848b83a973cb7f9dad6524eaa2d (diff)
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.
Diffstat (limited to '.github/workflows/deployment.yml')
-rw-r--r--.github/workflows/deployment.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml
index 7676a8e4..6197d9c8 100644
--- a/.github/workflows/deployment.yml
+++ b/.github/workflows/deployment.yml
@@ -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: |
+ 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