Skip to content

Commit

Permalink
Create GH release automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
legigor committed Jan 25, 2024
1 parent 17b2df0 commit 3ad32ad
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
release:
name: test
timeout-minutes: 2
runs-on: ubuntu-latest
Expand All @@ -38,3 +38,14 @@ jobs:
uses: actions/checkout@v4
- name: Test
run: go test -v ./...
- name: Get tag name
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}
- name: Create release
if: steps.vars.outputs.tag != null
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: false
draft: false

0 comments on commit 3ad32ad

Please sign in to comment.