2020-03-19 13:17:17 +02:00
|
|
|
name: Continuous Delivery
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
2020-12-24 10:51:50 +02:00
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-19 13:17:17 +02:00
|
|
|
steps:
|
2020-03-20 15:27:39 +02:00
|
|
|
- name: Checkout code
|
2023-07-02 20:07:26 +02:00
|
|
|
uses: actions/checkout@v3
|
2020-03-22 12:43:30 +02:00
|
|
|
- name: Unshallow repo
|
|
|
|
run: git fetch --prune --unshallow
|
2020-03-20 15:27:39 +02:00
|
|
|
- name: Setup Go
|
2023-08-21 11:10:52 +02:00
|
|
|
uses: actions/setup-go@v4
|
2020-03-19 13:17:17 +02:00
|
|
|
with:
|
2023-07-30 11:33:20 +02:00
|
|
|
go-version: 1.20.x
|
2020-03-20 15:27:39 +02:00
|
|
|
- name: Run goreleaser
|
2023-08-21 11:09:59 +02:00
|
|
|
uses: goreleaser/goreleaser-action@v4
|
2023-07-21 01:03:47 +02:00
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
|
|
|
version: v1.17.2
|
|
|
|
args: release --clean
|
2020-03-19 13:17:17 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}}
|
2020-12-24 10:51:50 +02:00
|
|
|
homebrew:
|
2022-05-07 11:59:40 +02:00
|
|
|
runs-on: ubuntu-latest
|
2020-12-24 10:51:50 +02:00
|
|
|
steps:
|
|
|
|
- name: Bump Homebrew formula
|
2020-05-13 13:36:59 +02:00
|
|
|
uses: dawidd6/action-homebrew-bump-formula@v3
|
2020-03-19 13:17:17 +02:00
|
|
|
with:
|
|
|
|
token: ${{secrets.GITHUB_API_TOKEN}}
|
|
|
|
formula: lazygit
|