From beef5292cc6d8679fce5f1d5702292d8d33b1c46 Mon Sep 17 00:00:00 2001 From: Curstantine Date: Tue, 30 Jan 2024 16:51:33 +0530 Subject: [PATCH] fix: add sources sub zst and standalone binary --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 619fb11..9e3613b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,11 @@ jobs: - name: Build run: cargo build --release + - name: Install post-build dependencies + run: | + sudo apt-get update + sudo apt-get install -y tar zstd + - name: Move tab completion files run: | mkdir -p sources/completions @@ -27,7 +32,12 @@ jobs: mv target/release/tab_completions/osu_helper_script.bash sources/completions/bash mv target/release/tab_completions/osu_helper_script.fish sources/completions/fish + - name: Package source with tar + run: tar --zstd -cvf "sources.tar.zst" -C sources/ . + - name: Create release uses: softprops/action-gh-release@v1 with: - files: sources/**/* + files: | + sources/osu_helper_script + sources.tar.zst