1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-24 08:52:21 +02:00
lazygit/.github/workflows/cd.yml

35 lines
853 B
YAML
Raw Normal View History

2020-03-19 13:17:17 +02:00
name: Continuous Delivery
on:
push:
tags:
- 'v*'
jobs:
cd:
runs-on: ubuntu-latest
steps:
2020-03-20 15:27:39 +02:00
- name: Checkout code
2020-03-19 13:17:17 +02:00
uses: actions/checkout@v2
with:
fetch-depth: 0
2020-03-20 15:27:39 +02:00
- name: Setup Go
2020-03-19 13:17:17 +02:00
uses: actions/setup-go@v1
with:
go-version: 1.14.x
2020-03-20 15:27:39 +02:00
- name: Run goreleaser
2020-03-19 13:17:17 +02:00
uses: goreleaser/goreleaser-action@v1
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}}
- name: Get tag
id: tag
2020-03-22 12:13:26 +02:00
uses: dawidd6/action-get-tag@v1
2020-03-20 15:27:39 +02:00
- name: Bump Homebrew
2020-03-19 13:17:17 +02:00
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"