Skip to content

Commit f551ea1

Browse files
committed
Add completion in release artifacts
1 parent b07674c commit f551ea1

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,21 @@ jobs:
2222
- name: Build release binary
2323
run: cargo build --release --locked --verbose
2424

25+
- name: Build shell completions
26+
run: |
27+
mkdir completion
28+
target/release/dosnap completion --shell zsh >completion/_dosnap
29+
target/release/dosnap completion --shell bash >completion/dosnap.bash
30+
target/release/dosnap completion --shell fish >completion/dosnap.fish
31+
2532
- name: Strip release binary
2633
run: strip target/release/dosnap
2734

28-
- name: Upload binaries to release
29-
uses: svenstaro/upload-release-action@v2
35+
- name: Release
36+
uses: softprops/action-gh-release@v1
3037
with:
31-
repo_token: ${{ secrets.GITHUB_TOKEN }}
32-
file: target/release/dosnap
33-
asset_name: dosnap
34-
tag: ${{ github.ref }}
35-
overwrite: true
38+
files: |
39+
target/release/dosnap
40+
completion/_dosnap
41+
completion/dosnap.bash
42+
completion/dosnap.fish

0 commit comments

Comments
 (0)