File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,26 @@ jobs:
21
21
- name : Cross build (${{ matrix.target }})
22
22
env :
23
23
BUILD_TARGET : ${{ matrix.target }}
24
- run : |
25
- ./scripts/cross-build.sh
26
- mv build/ttyd build/ttyd.${{ matrix.target }}
24
+ run : ./scripts/cross-build.sh
25
+ - uses : actions/upload-artifact@v3
26
+ with :
27
+ name : ttyd.${{ matrix.target }}
28
+ path : build/ttyd*
29
+ publish :
30
+ needs : [build]
31
+ runs-on : ubuntu-20.04
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+ - uses : actions/download-artifact@v3
35
+ - run : |
36
+ mkdir build
37
+ for file in ttyd.*/*; do
38
+ target=$(echo $file | awk -F/ '{print $1}')
39
+ [[ $file == *.exe ]] && target="$target.exe"
40
+ mv $file build/$target
41
+ done
27
42
- uses : ncipollo/release-action@v1
28
43
with :
29
- artifacts : build/ttyd.${{ matrix.target }}
44
+ artifacts : build/*
30
45
allowUpdates : true
31
46
draft : true
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
4
4
project (ttyd C)
5
5
set (PROJECT_VERSION_MAJOR "1" )
6
6
set (PROJECT_VERSION_MINOR "7" )
7
- set (PROJECT_VERSION_PATCH "2 " )
7
+ set (PROJECT_VERSION_PATCH "3 " )
8
8
set (PROJECT_VERSION "${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} .${PROJECT_VERSION_PATCH} " )
9
9
else ()
10
10
cmake_policy (SET CMP0048 NEW)
11
- project (ttyd VERSION 1.7.2 LANGUAGES C)
11
+ project (ttyd VERSION 1.7.3 LANGUAGES C)
12
12
endif ()
13
13
14
14
find_package (Git)
Original file line number Diff line number Diff line change @@ -53,14 +53,9 @@ ttyd is a simple command-line tool for sharing terminal over the web.
53
53
# # Command-line Options
54
54
55
55
` ` `
56
- ttyd is a tool for sharing terminal over the web
57
-
58
56
USAGE:
59
57
ttyd [options] < command> [< arguments...> ]
60
58
61
- VERSION:
62
- 1.7.2
63
-
64
59
OPTIONS:
65
60
-p, --port Port to listen (default: 7681, use ` 0` for random port)
66
61
-i, --interface Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)
@@ -87,8 +82,6 @@ OPTIONS:
87
82
-d, --debug Set log level (default: 7)
88
83
-v, --version Print the version and exit
89
84
-h, --help Print this text and exit
90
-
91
- Visit https://github.com/tsl0922/ttyd to get more information and report bugs.
92
85
` ` `
93
86
94
87
Read the example usage on the [wiki](https://github.com/tsl0922/ttyd/wiki/Example-Usage).
You can’t perform that action at this time.
0 commit comments