Skip to content

2.12.2

2.12.2 #107

Workflow file for this run

name: Release to PyPI
on:
release:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release
types: [released, prereleased]
jobs:
release:
name: Release on Pypi
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # Minimum supported Python version by AllianceAuth
- name: Install Tools
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m pip install --upgrade setuptools wheel twine
- name: Package and Upload
env:
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }}
run: |
python -m build
python -m twine upload dist/*