Skip to content

Upload Python Package #1

Upload Python Package

Upload Python Package #1

Workflow file for this run

name: Upload Python Package
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
# pin poetry to 1.3.2 due to https://github.com/python-poetry/poetry/issues/7611
python -m pip install -U pip poetry==1.3.2 mkdocs mkdocs-material
poetry --version
poetry install
- name: Publish
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
./scripts/publish