Skip to content

Commit ff716c2

Browse files
committed
feat(workflow): add also workflow
1 parent 2291e44 commit ff716c2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v4
16+
with:
17+
go-version: "1.21"
18+
19+
- name: Build
20+
run: |
21+
go build -o venv-manager cmd/venv-manager/main.go
22+
23+
- name: Get version
24+
id: get_version
25+
run: echo "::set-output name=version::$(date +'%Y.%m.%d')"
26+
27+
- name: Create Release
28+
uses: softprops/action-gh-release@v1
29+
with:
30+
tag_name: v${{ steps.get_version.outputs.version }}
31+
files: |
32+
venv-manager
33+
README.md
34+
LICENSE
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)