Skip to content

Bump version: 1.2.0 → 1.2.1 #9

Bump version: 1.2.0 → 1.2.1

Bump version: 1.2.0 → 1.2.1 #9

Workflow file for this run

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