Add Python 3.12 to test setup (#22) #11
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 | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install Dependencies | |
run: | | |
pip install poetry | |
poetry install | |
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | |
- name: Get current version | |
id: get_version | |
run: echo version=$(poetry version -s) >> $GITHUB_OUTPUT | |
- uses: mukunku/[email protected] | |
id: version_exists_check | |
with: | |
tag: v${{steps.get_version.outputs.version}} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: steps.version_exists_check.outputs.exists != 'true' | |
with: | |
generate_release_notes: true | |
draft: true | |
name: ${{steps.get_version.outputs.version}} | |
tag_name: v${{steps.get_version.outputs.version}} |