Skip to content

Commit 6d07873

Browse files
committed
Merge branch 'main' of github.com:Imnotndesh/portage
2 parents de8c485 + 09beeab commit 6d07873

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/portage.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}

0 commit comments

Comments
 (0)