File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Automated Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Set up Go
15
+ uses : actions/setup-go@v1
16
+ with :
17
+ go-version : 1.22
18
+
19
+ - name : Build portage
20
+ run : go build -o portage ./main.go
21
+
22
+ - name : Upload Release Asset
23
+ uses : actions/upload-artifact@v2
24
+ with :
25
+ name : portage-executable
26
+ path : portage
27
+
28
+ - name : Create Release
29
+ uses : actions/create-release@v1
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GIT_TOKEN }}
32
+ with :
33
+ tag_name : ${{ github.ref }}
34
+ release_name : Portage Release ${{ github.ref }}
35
+ body : |
36
+ Portage version: ${{ github.ref }}.
37
+
38
+ draft : true
39
+ prerelease : true
40
+
41
+ - name : Upload Asset
42
+ uses : actions/upload-asset@v2
43
+ with :
44
+ upload_url : ${{ github.releases.upload_url }}
45
+ asset_name : portage
46
+ path : ./portage-executable/portage
You can’t perform that action at this time.
0 commit comments