-
Notifications
You must be signed in to change notification settings - Fork 7
31 lines (31 loc) · 1.06 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
# This action publishes a package after you push a tag
# See goreleaser documentation
# https://goreleaser.com/ci/actions/
# https://github.com/goreleaser/goreleaser/blob/v1.9.2/www/docs/ci/actions.md
name: Create GitHub Release
on:
push:
# run only against tags
tags:
- '*'
jobs:
goreleaser:
# available runners:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: ubuntu-22.04
permissions:
contents: write # for creating release
steps:
- uses: actions/checkout@v3
with:
# git fetch all branches instead of just the ref, and no --depth=1
# required for goreleaser build unless you use --snapshot or --skip-validate
fetch-depth: 0
submodules: recursive
- name: Fetch all tags
# this is needed if you use TagBody, TagSubject or TagContents in your template
run: git fetch --force --tags
- name: release publish
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}