Skip to content

Commit

Permalink
Use github action to auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
ntk148v committed Nov 10, 2021
1 parent 31e8d3e commit 568f310
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "tagged-release"

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: Tagged Release
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go

- name: Checkout code
uses: actions/checkout@v2

- name: Build & test
run: go build -ldflags "-s -w" -o /tmp/goignore *.go

- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: /tmp/goignore

0 comments on commit 568f310

Please sign in to comment.