Skip to content

Commit

Permalink
Merge pull request #3 from matsuu/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
matsuu authored Aug 22, 2021
2 parents b425608 + d51b97f commit 3566757
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/branches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release CLI to the GitHub Release
on:
push:
branches:
- '*'

jobs:
release:
name: Release test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release CLI to the GitHub Release
on:
push:
tags:
- '*'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3566757

Please sign in to comment.