]> prime8.dev >> repos - ttyd.git/commitdiff
Bump to 1.7.3
authorShuanglei Tao <tsl0922@gmail.com>
Wed, 18 Jan 2023 02:52:35 +0000 (10:52 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Wed, 18 Jan 2023 03:42:54 +0000 (11:42 +0800)
.github/workflows/release.yml
CMakeLists.txt
README.md

index d079c48e19962cdb9834b2acd1eb699e559106ad..9500cee5a74ad53ca23bd7031e7585687e00468a 100644 (file)
@@ -21,11 +21,26 @@ jobs:
       - name: Cross build (${{ matrix.target }})
         env:
           BUILD_TARGET: ${{ matrix.target }}
-        run: |
-          ./scripts/cross-build.sh
-          mv build/ttyd build/ttyd.${{ matrix.target }}
+        run: ./scripts/cross-build.sh
+      - uses: actions/upload-artifact@v3
+        with:
+          name: ttyd.${{ matrix.target }}
+          path: build/ttyd*
+  publish:
+    needs: [build]
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/download-artifact@v3
+      - run: |
+          mkdir build
+          for file in ttyd.*/*; do
+            target=$(echo $file | awk -F/ '{print $1}')
+            [[ $file == *.exe ]] && target="$target.exe"
+            mv $file build/$target
+          done
       - uses: ncipollo/release-action@v1
         with:
-          artifacts: build/ttyd.${{ matrix.target }}
+          artifacts: build/*
           allowUpdates: true
           draft: true
index 85f8bdc3634e6c1e56b3e46a371a36a835c908af..6bacdd0053c26d3e3838c00b66b2a9801514742a 100644 (file)
@@ -4,11 +4,11 @@ if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
     project(ttyd C) 
     set(PROJECT_VERSION_MAJOR "1")
     set(PROJECT_VERSION_MINOR "7")
-    set(PROJECT_VERSION_PATCH "2")
+    set(PROJECT_VERSION_PATCH "3")
     set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
 else()
     cmake_policy(SET CMP0048 NEW)
-    project(ttyd VERSION 1.7.2 LANGUAGES C)
+    project(ttyd VERSION 1.7.3 LANGUAGES C)
 endif()
 
 find_package(Git)
index 8701a542748134fe454733575171713122ca0f72..3ac3a4bf4acbba2cb03efaf9a7d64e76d87ceee8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -53,14 +53,9 @@ ttyd is a simple command-line tool for sharing terminal over the web.
 ## Command-line Options
 
 ```
-ttyd is a tool for sharing terminal over the web
-
 USAGE:
     ttyd [options] <command> [<arguments...>]
 
-VERSION:
-    1.7.2
-
 OPTIONS:
     -p, --port              Port to listen (default: 7681, use `0` for random port)
     -i, --interface         Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)
@@ -87,8 +82,6 @@ OPTIONS:
     -d, --debug             Set log level (default: 7)
     -v, --version           Print the version and exit
     -h, --help              Print this text and exit
-
-Visit https://github.com/tsl0922/ttyd to get more information and report bugs.
 ```
 
 Read the example usage on the [wiki](https://github.com/tsl0922/ttyd/wiki/Example-Usage).