Skip to content

Bump version to 0.5.0 #9

Bump version to 0.5.0

Bump version to 0.5.0 #9

Workflow file for this run

name: Release Version
on:
push:
branches:
- release
jobs:
release_version:
name: "Release New Version"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Get release version
id: version
run: |
echo "RELEASE_VER=$(python -c "from docs.conf import release; print(release, end='')")" >> "$GITHUB_OUTPUT"
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.version.outputs.RELEASE_VER }}
tag_prefix: ""
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.RELEASE_VER }}
name: Release ${{ steps.version.outputs.RELEASE_VER }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}