-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (65 loc) · 2.14 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: goreleaser-release
on:
push:
tags:
- 'v*'
jobs:
# Actually release the binaries including signing them
release:
runs-on: depot-ubuntu-22.04-8
if: ${{ github.event_name != 'pull_request' }}
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Go Init
uses: ./.github/actions/go_init
with:
cache: true
- run: go run main.go --version
- name: Run GoReleaser (publish)
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Used to create PRs on the Winget repo
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
- name: Install cloudsmith CLI
run: |
pip install --upgrade cloudsmith-cli
- name: Upload packages to cloudsmith
run: |
for i in dist/*.apk; do
cloudsmith push alpine overmind/tools/alpine/any-version $i
done
for i in dist/*.deb; do
cloudsmith push deb overmind/tools/any-distro/any-version $i
done
for i in dist/*.rpm; do
cloudsmith push rpm overmind/tools/any-distro/any-version $i
done
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
bump-formula:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
# Required, custom personal GitHub access token with only the 'public_repo' scope enabled
token: ${{secrets.CUSTOM_PERSONAL_ACCESS_TOKEN}}
# Bump all outdated formulae in this tap
tap: overmindtech/homebrew-overmind
# Bump only these formulae if outdated
formula: overmind-cli
# Need to set this input if want to use `brew livecheck`
livecheck: true
user_name: CLI Release Bot
user_email: [email protected]