File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Release Portage
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Install Go (replace with your specific version if needed)
13
+ uses : actions/setup-go@v2
14
+ with :
15
+ go-version : ' 1.22'
16
+ - name : Build portage
17
+ run : go build -o portage main.go # Replace with your build command and output path
18
+ - uses : actions/upload-artifact@v2
19
+ with :
20
+ name : go-app-artifact
21
+ path : ./portage # Replace with your output binary path
22
+
23
+ release :
24
+ needs : build
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - uses : git@v4
28
+ name : Get commit message
29
+ - id : get_message
30
+ run : |
31
+ git log --pretty=%B -1
32
+ - uses : softprops/action-gh-release@v1
33
+ with :
34
+ tag_name : ${{ github.ref }}
35
+ name : New Release ${{ github.ref }}
36
+ body : ${{ steps.get_message.outputs }}
37
+ files : ./portage@${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments