Skip to content

Update to version 3

Update to version 3 #4

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get tag name
id: tag-name
run: echo "out=$(basename $GITHUB_REF)" >> $GITHUB_OUTPUT
- name: Get tag message
id: tag-message
run: |
TAG_MSG=$(git tag -l --format='%(contents)' ${{ steps.tag-name.outputs.out }})
echo "TAG_MSG<<EOF" >> $GITHUB_ENV
echo "$TAG_MSG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag-name.outputs.out }}
release_name: ${{ steps.tag-name.outputs.out }}
body: ${{ env.TAG_MSG }}
draft: false
prerelease: false