Skip to content

bump: 7.0.10a0

bump: 7.0.10a0 #59

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pipx run flit publish
env:
FLIT_USERNAME: '__token__'
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
- name: Get Previous Tag
id: tag
uses: trim21/changelog-previous-tag@master
with:
token: ${{ github.token }}
version-spec: pep440
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
restrictToTypes: feat,fix,revert
- name: Upload Github Release
run: gh release create "${GITHUB_REF}" --notes "${CHANGELOG}" $EXTRA_OPTS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHANGELOG: "${{ steps.changelog.outputs.changes }}"
EXTRA_OPTS: "${{ env.preRelease == 'true' && '-p' || '' }}"