-
Notifications
You must be signed in to change notification settings - Fork 231
39 lines (32 loc) · 920 Bytes
/
Copy pathrelease.yml
File metadata and controls
39 lines (32 loc) · 920 Bytes
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
name: release
on:
workflow_dispatch:
push:
tags:
- v*
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Remove large directories
run: |
df -h
cd /opt/hostedtoolcache
find . -mindepth 1 -maxdepth 1 -type d -not -name 'go' -exec rm -rf {} +
df -h
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: '1.22.6'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
with:
distribution: goreleaser
version: latest
args: release --clean --draft=true -p 1
env:
GITHUB_TOKEN: ${{ secrets.GORELEASE_TOKEN }}