Skip to content

Commit

Permalink
🚀 fix ci compress
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Apr 12, 2024
1 parent 8246276 commit 2eed3f9
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
APP_NAME: "WebSocketReflectorX"
APP_VERSION: "0.2.3"
APP_VERSION: "0.2.4"

#-------------------------------------------------------------------------------
# Workflow jobs
Expand Down Expand Up @@ -79,20 +79,20 @@ jobs:

# Deploy application
- name: Compress Binaries
run: tar --transform='s!.*/!!' -cvf wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.tar.gz target/release/wsrx
run: zip -r -y -X wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip target/release/wsrx

# Upload application ZIP
- name: Upload application ZIP
uses: actions/upload-artifact@v4
with:
name: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.tar.gz
path: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.tar.gz
name: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip
path: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.tar.gz
files: wsrx-cli-${{env.APP_VERSION}}-macOS-x86_64.zip

## macOS build ###############################################################
build-mac-arm:
Expand All @@ -116,20 +116,20 @@ jobs:

# Deploy application
- name: Compress Binaries
run: tar --transform='s!.*/!!' -cvf wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.tar.gz target/release/wsrx
run: zip -r -y -X wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.zip target/release/wsrx

# Upload application ZIP
- name: Upload application ZIP
uses: actions/upload-artifact@v4
with:
name: wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.tar.gz
path: wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.tar.gz
name: wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.zip
path: wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.zip

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.tar.gz
files: wsrx-cli-${{env.APP_VERSION}}-macOS-arm64.zip

## Windows build #############################################################
build-windows:
Expand All @@ -153,17 +153,17 @@ jobs:

# Deploy application
- name: Compress Binaries
run: tar --transform='s!.*/!!' -cvf wsrx-cli-${{env.APP_VERSION}}-win64.tar.gz target/release/wsrx.exe
run: 7z a wsrx-cli-${{env.APP_VERSION}}-win64.zip target/release/wsrx.exe

# Upload application ZIP
- name: Upload application ZIP
uses: actions/upload-artifact@v4
with:
name: wsrx-cli-${{env.APP_VERSION}}-win64.tar.gz
path: wsrx-cli-${{env.APP_VERSION}}-win64.tar.gz
name: wsrx-cli-${{env.APP_VERSION}}-win64.zip
path: wsrx-cli-${{env.APP_VERSION}}-win64.zip

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: wsrx-cli-${{env.APP_VERSION}}-win64.tar.gz
files: wsrx-cli-${{env.APP_VERSION}}-win64.zip
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

env:
APP_NAME: "WebSocketReflectorX"
APP_VERSION: "0.2.3"
APP_VERSION: "0.2.4"
QT_VERSION: "6.6.2"

#-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
APP_NAME: "WebSocketReflectorX"
APP_VERSION: "0.2.3"
APP_VERSION: "0.2.4"
QT_VERSION: "6.6.2"

#-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)

set(VERSION_MAJOR 0)
set(VERSION_MINOR 2)
set(VERSION_PATCH 3)
set(VERSION_PATCH 4)

execute_process(
COMMAND git describe --always --dirty
Expand Down
2 changes: 1 addition & 1 deletion deploy_linux.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export APP_NAME="WebSocketReflectorX"
export APP_VERSION=0.2.3
export APP_VERSION=0.2.4
export GIT_VERSION=$(git rev-parse --short HEAD)

echo "> $APP_NAME packager (Linux x86_64) [v$APP_VERSION]"
Expand Down
2 changes: 1 addition & 1 deletion deploy_macos.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export APP_NAME="WebSocketReflectorX"
export APP_VERSION=0.2.3
export APP_VERSION=0.2.4
export GIT_VERSION=$(git rev-parse --short HEAD)

echo "> $APP_NAME packager (macOS x86_64) [v$APP_VERSION]"
Expand Down
2 changes: 1 addition & 1 deletion deploy_windows.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export APP_NAME="WebSocketReflectorX"
export APP_VERSION=0.2.3
export APP_VERSION=0.2.4
export GIT_VERSION=$(git rev-parse --short HEAD)

echo "> $APP_NAME packager (Windows x86_64) [v$APP_VERSION]"
Expand Down
2 changes: 1 addition & 1 deletion macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<string>tech.woooo.wsrx</string>

<key>CFBundleVersion</key>
<string>0.2.3</string>
<string>0.2.4</string>

<key>CFBundleShortVersionString</key>
<string>0.2</string>
Expand Down
2 changes: 1 addition & 1 deletion wsrx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wsrx"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
authors = ["Reverier-Xu <[email protected]>"]
description = "Controlled TCP-over-WebSocket forwarding tunnel."
Expand Down

0 comments on commit 2eed3f9

Please sign in to comment.