-
Notifications
You must be signed in to change notification settings - Fork 108
43 lines (38 loc) · 1.33 KB
/
create-release.yaml
File metadata and controls
43 lines (38 loc) · 1.33 KB
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
name: create_release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-22.04
steps:
- name: Cleanup disk
run: |
# Cleaning up unused tools based on the suggested workaround:
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
# Partial cleanup from the suggested workaround.
# If we continue running out of space, we can remove everything listed in the workaround.
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: "1.24"
check-latest: true
- name: Goreleaser
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
version: "~> v2"
args: release --clean --fail-fast --timeout 150m --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}