Skip to content

Commit 3274d83

Browse files
committed
New release workflow
1 parent cd11d83 commit 3274d83

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/auto_release.yml

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

0 commit comments

Comments
 (0)