File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : compatlib tag and release
2
+
3
+ on :
4
+ # On demand releases
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ release :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Set tag
15
+ run : |
16
+ today=$(printf '%(%Y-%m-%d)T\n' -1)
17
+ echo $today
18
+ echo "tag=${today}" >> ${GITHUB_ENV}
19
+
20
+ - uses : actions/checkout@v4
21
+ - name : Setup Go
22
+ uses : actions/setup-go@v3
23
+ with :
24
+ go-version : ^1.22
25
+ - name : Install dependencies
26
+ run : |
27
+ export PATH=$PWD/bin:$PATH
28
+ mkdir -p ./bin
29
+ go build -o ./bin/fs-gen cmd/fs/fs.go
30
+ go build -o ./bin/compat-gen cmd/gen/gen.go
31
+ go build -o ./bin/compat-server cmd/server/server.go
32
+ go build -o ./bin/compat-cli cmd/client/client.go
33
+ go build -o ./bin/fs-record cmd/record/record.go
34
+
35
+ - name : Release
36
+ uses : softprops/action-gh-release@v1
37
+ with :
38
+ name : compat-lib ${{ env.tag }}
39
+ tag_name : ${{ env.tag }}
40
+ body : " compat-lib release ${{ env.tag }}"
41
+ files : |
42
+ bin/fs-gen
43
+ bin/compat-gen
44
+ bin/compat-server
45
+ bin/compat-cli
46
+ bin/fs-record
47
+ env :
48
+ GITHUB_REPOSITORY : compspec/compat-lib
49
+
You can’t perform that action at this time.
0 commit comments