Skip to content

Bump version: 0.2.0 → 0.2.1 #3

Bump version: 0.2.0 → 0.2.1

Bump version: 0.2.0 → 0.2.1 #3

Workflow file for this run

name: release & publish
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
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash
- 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@v2
- uses: actions/setup-python@v2
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
- 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