Skip to content

v0.0.3

v0.0.3 #4

Workflow file for this run

name: Release new version
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install poetry
- name: Build and publish module
env: # authentication
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
VERSION=$(echo ${{ github.ref }} | cut -d "v" -f 2 | xargs)
echo "Change module version to $VERSION"
poetry version $VERSION
poetry build
poetry publish -u "__token__" -p $PYPI_API_TOKEN