Skip to content

Commit

Permalink
add auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
panxiuqing committed May 15, 2021
1 parent 81b81a7 commit cc44a09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: Release

on:
push:
branches: [main]
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Go
uses: actions/setup-go@v2
Expand All @@ -18,3 +20,10 @@ jobs:

- name: Build
run: go build

- name: Release
uses: softprops/action-gh-release@v1
with:
files: gitig
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}

0 comments on commit cc44a09

Please sign in to comment.