Bump version to 0.5.0 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |