-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 961 Bytes
/
release.yml
File metadata and controls
44 lines (37 loc) · 961 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
40
41
42
43
44
name: Release
on:
push:
tags:
- "*.*.*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
env:
BUILD_VERSION: ${{ github.ref_name }}
OUT_ARCHIVE: "${{ github.event.repository.name }}-${{ github.ref_name }}"
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
- uses: arduino/setup-task@v2
with:
version: 3.x
- name: Build
run: task build:release
- id: extract-changelog
uses: sean0x42/markdown-extract@v2
with:
file: CHANGELOG.md
pattern: ${{ github.ref_name }}
no-print-matched-heading: true
- name: Create Release
uses: softprops/action-gh-release@v2
if: ${{ !env.ACT }}
with:
body: |
## Changelog
${{ steps.extract-changelog.outputs.markdown }}
files: |
*.tar.gz