Skip to content

Commit 04dc3d1

Browse files
Update CI/CD workflow and version to 0.1.14; improve install script output (#15)
1 parent 88808fb commit 04dc3d1

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/ci-cd.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
environment: production
7575
permissions:
7676
contents: write
77+
env:
78+
BINARY_NAME: wg-tui
7779
steps:
7880
- uses: actions/checkout@v6
7981

@@ -97,13 +99,13 @@ jobs:
9799
run: echo "version=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version')" >> $GITHUB_OUTPUT
98100

99101
- name: Prepare release artifact
100-
run: mv target/x86_64-unknown-linux-musl/release/wg-tui wg-tui-${{ steps.version.outputs.version }}-x86_64-unknown-linux-musl
102+
run: mv target/x86_64-unknown-linux-musl/release/$BINARY_NAME $BINARY_NAME-${{ steps.version.outputs.version }}-x86_64-unknown-linux-musl
101103

102104
- name: Create GitHub Release
103105
uses: softprops/action-gh-release@v2
104106
with:
105107
tag_name: ${{ steps.version.outputs.version }}
106108
name: ${{ steps.version.outputs.version }}
107-
files: wg-tui-${{ steps.version.outputs.version }}-x86_64-unknown-linux-musl
109+
files: ${{ env.BINARY_NAME }}-${{ steps.version.outputs.version }}-x86_64-unknown-linux-musl
108110
generate_release_notes: true
109111
make_latest: true

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wg-tui"
3-
version = "0.1.13"
3+
version = "0.1.14"
44
edition = "2024"
55
description = "A terminal user interface for managing WireGuard VPN tunnels"
66
repository = "https://github.com/excoffierleonard/wg-tui"

‎scripts/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ else
3232
fi
3333

3434
echo "Installed ${BINARY} to ${INSTALL_DIR}/${BINARY}"
35-
echo "Run 'wg-tui --version' to verify"
35+
echo "Run '${BINARY} --version' to verify"

0 commit comments

Comments
 (0)