Bump version: 1.3.1 → 1.3.2 #13
Workflow file for this run
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: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-versions: [ "3.10" ] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Get version from tag (new) | |
run: echo "{current_version}={${GITHUB_REF#refs/tags/v}}" >> $GITHUB_OUTPUT | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Build wheels and source tarball | |
run: >- | |
poetry build | |
- name: show temporary files | |
run: >- | |
ls -l | |
- name: create github release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: dist/*.whl | |
draft: false | |
prerelease: false | |
generate_release_notes: true | |
- name: publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
skip_existing: true | |
verify_metadata: true | |
verbose: true |