-
Notifications
You must be signed in to change notification settings - Fork 46
37 lines (35 loc) · 1.01 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
name: Generate Next Release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Release
id: semantic-release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 24.0.0
extra_plugins: |
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
version: '~> v2'
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# Token for robot account @equinix-homebrew-tap, which can publish
# to metal-cli and homebrew-tap GH repos
GITHUB_TOKEN: ${{ secrets.GH_HOMEBREW_TAP_TOKEN }}