-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.06 KB
/
goreleaser.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
name: goreleaser
permissions:
contents: write
on:
push:
tags:
- "v*.*.*"
# Validate on develop, main, and master branches that the releaser
# is working as expected.
pull_request:
branches:
- develop
- main
- master
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Free disk space (Ubuntu)
uses: jlumbroso/free-disk-space@main
- name: Release dry run
run: make release-dry-run
if: github.event_name == 'pull_request'
- name: setup release environment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
if: github.event_name != 'pull_request'
- name: Release publish
# Do not publish the release for pull requests.
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make release