-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.2 KB
/
release.yaml
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
45
46
47
48
49
50
51
52
name: Release
#
# Releases a new version of this project.
#
# Make sure to prepare project for a new release (see docs for more).
#
on:
push:
tags:
- v*.*.*
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Determine release-version
id: release-version
run: |
value=$(echo "${GITHUB_REF#refs/*/}" | cut -c 2-)
echo "value=$value" | tee -a $GITHUB_OUTPUT
- name: Determine release-name
id: release-name
run: |
value="${{ steps.release-version.outputs.value }} / $(date +%Y-%m-%d)"
echo "value=$value" | tee -a $GITHUB_OUTPUT
- name: Run task create-notes
run: task create-notes
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.release-name.outputs.value }}
body_path: tmp/release.md
draft: true