Skip to content

Commit

Permalink
Update myCD.yml
Browse files Browse the repository at this point in the history
Add CD using Go Releaser
  • Loading branch information
Lowkh committed Jun 10, 2022
1 parent 6582daf commit a8ce54c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/myCD.yml
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@

name: CD for Go Code
on:
create:
tags:
- v*

jobs:
release:
name: Release on Github
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2.4.2

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a8ce54c

Please sign in to comment.