Skip to content

release: update version to 1.0.0 #14

release: update version to 1.0.0

release: update version to 1.0.0 #14

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git-cliff
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Generate changelog
run: |
git-cliff --output CHANGELOG.md --latest
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: v${{ env.VERSION }}
body_path: CHANGELOG.md
draft: false
prerelease: false