@@ -3,7 +3,7 @@ name: Docker Image CI
3
3
on :
4
4
push :
5
5
tags :
6
- - " v*"
6
+ - " v*.*.* "
7
7
8
8
jobs :
9
9
docker-hub :
@@ -68,28 +68,28 @@ jobs:
68
68
69
69
- name : Build
70
70
run : |
71
- GOOS=linux GOARCH=amd64 go build -o busuanzi-linux-amd64
72
- GOOS=linux GOARCH=arm64 go build -o busuanzi-linux-arm64
73
- GOOS=darwin GOARCH=amd64 go build -o busuanzi-darwin-amd64
74
- GOOS=darwin GOARCH=arm64 go build -o busuanzi-darwin-arm64
75
- GOOS=windows GOARCH=amd64 go build -o busuanzi-windows-amd64.exe
76
- GOOS=windows GOARCH=arm64 go build -o busuanzi-windows-arm64.exe
77
- GOOS=windows GOARCH=386 go build -o busuanzi-windows-386.exe
71
+ GOOS=linux GOARCH=amd64 go build -o busuanzi-linux-amd64-${{ github.ref_name }}
72
+ GOOS=linux GOARCH=arm64 go build -o busuanzi-linux-arm64-${{ github.ref_name }}
73
+ GOOS=darwin GOARCH=amd64 go build -o busuanzi-darwin-amd64-${{ github.ref_name }}
74
+ GOOS=darwin GOARCH=arm64 go build -o busuanzi-darwin-arm64-${{ github.ref_name }}
75
+ GOOS=windows GOARCH=amd64 go build -o busuanzi-windows-amd64-${{ github.ref_name }} .exe
76
+ GOOS=windows GOARCH=arm64 go build -o busuanzi-windows-arm64-${{ github.ref_name }} .exe
77
+ GOOS=windows GOARCH=386 go build -o busuanzi-windows-386-${{ github.ref_name }} .exe
78
78
79
79
- name : Archive
80
80
uses : softprops/action-gh-release@v2
81
81
if : startsWith(github.ref, 'refs/tags/')
82
82
with :
83
83
files : |
84
- busuanzi-linux-amd64
85
- busuanzi-linux-arm64
86
- busuanzi-darwin-amd64
87
- busuanzi-darwin-arm64
88
- busuanzi-windows-amd64.exe
89
- busuanzi-windows-arm64.exe
90
- busuanzi-windows-386.exe
84
+ busuanzi-linux-amd64-${{ github.ref_name }}
85
+ busuanzi-linux-arm64-${{ github.ref_name }}
86
+ busuanzi-darwin-amd64-${{ github.ref_name }}
87
+ busuanzi-darwin-arm64-${{ github.ref_name }}
88
+ busuanzi-windows-amd64-${{ github.ref_name }} .exe
89
+ busuanzi-windows-arm64-${{ github.ref_name }} .exe
90
+ busuanzi-windows-386-${{ github.ref_name }} .exe
91
91
token : ${{ secrets.GITHUB_TOKEN }}
92
- release_name : ${{ github.ref }}
93
- tag_name : ${{ github.ref }}
92
+ release_name : ${{ github.ref_name }}
93
+ tag_name : ${{ github.ref_name }}
94
94
body : ${{ github.event.release.body }}
95
95
draft : true
0 commit comments