File tree 2 files changed +31
-32
lines changed
2 files changed +31
-32
lines changed Original file line number Diff line number Diff line change @@ -2,39 +2,8 @@ name: build x2i
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - x2i-*
7
-
8
5
workflow_dispatch :
9
6
10
7
jobs :
11
8
build :
12
-
13
- runs-on : ubuntu-latest
14
- permissions :
15
- contents : write
16
- steps :
17
- - uses : actions/checkout@v4
18
-
19
- - name : Set up Go
20
- uses : actions/setup-go@v5
21
- with :
22
- go-version : 1.22.4
23
-
24
- - name : Build
25
- run : |
26
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o x2i-linux-amd64 x2i.go
27
- GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o x2i-linux-arm64 x2i.go
28
- GOOS=windows GOARCH=386 go build -o x2i-windows-386.exe x2i.go
29
- GOOS=windows GOARCH=amd64 go build -o x2i-windows-amd64.exe x2i.go
30
- GOOS=darwin GOARCH=amd64 go build -o x2i-macos-amd64 x2i.go
31
- GOOS=darwin GOARCH=arm64 go build -o x2i-macos-arm64 x2i.go
32
-
33
- -
uses :
olegtarasov/[email protected]
34
- id : tagName
35
-
36
- -
uses :
ncipollo/[email protected]
37
- with :
38
- artifacts : " x2i-*"
39
- body : " Release ${{ steps.tagName.outputs.tag }}"
40
-
9
+ uses : ./.github/workflows/build-common.yml
Original file line number Diff line number Diff line change
1
+ name : release x2i
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - x2i-*
7
+
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ uses : ./.github/workflows/build-common.yml
13
+
14
+ release :
15
+ needs : build
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write
19
+ steps :
20
+ - uses : actions/download-artifact@v4
21
+ with :
22
+ name : ${{ needs.build.outputs.artifact-name }}
23
+
24
+ -
uses :
olegtarasov/[email protected]
25
+ id : tagName
26
+
27
+ -
uses :
ncipollo/[email protected]
28
+ with :
29
+ artifacts : " x2i-*"
30
+ body : " Release ${{ steps.tagName.outputs.tag }}"
You can’t perform that action at this time.
0 commit comments