Skip to content

chore: Prepare release v1.1.1 #4

chore: Prepare release v1.1.1

chore: Prepare release v1.1.1 #4

Workflow file for this run

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