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: Build and Publish Python Package
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: "python:3.11.8"
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
mkdir -p ~/.cache/pip
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install twine build
- name: Build Package
run: |
pyproject-build
- name: Publish Package
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload -u __token__ -p "$PYPI_TOKEN" dist/*