summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDawid Dziurla <dawidd0811@gmail.com>2020-03-19 12:17:17 +0100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-21 12:55:44 +1100
commit9212dda9c395114e3a8f0b957c0d5e9b1a833bf0 (patch)
tree3e9b9ffba88bc2710dd9c3ce32d9aaa102dfeb9d /.github
parent93d7b37c8d0c4668e36f90933544b8fdc24c5aaa (diff)
Add CD workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cd.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
new file mode 100644
index 000000000..73dc19708
--- /dev/null
+++ b/.github/workflows/cd.yml
@@ -0,0 +1,34 @@
+name: Continuous Delivery
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+jobs:
+ cd:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Set up Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.14.x
+ - name: Run GoReleaser
+ uses: goreleaser/goreleaser-action@v1
+ with:
+ args: release --rm-dist
+ env:
+ GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}}
+ - name: Get tag
+ id: tag
+ run: echo "::set-output name=tag::${GITHUB_REF##*/}"
+ - name: Bump Homebrew formula
+ uses: dawidd6/action-homebrew-bump-formula@v1
+ with:
+ token: ${{secrets.GITHUB_API_TOKEN}}
+ formula: lazygit
+ url: "https://github.com/${{github.repository}}/archive/${{steps.tag.outputs.tag}}.tar.gz"