25 lines
595 B
YAML
25 lines
595 B
YAML
name: Publish Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install build tools
|
|
run: |
|
|
python3 -m pip install --break-system-packages build twine requests python-dotenv click
|
|
- name: Build and publish release
|
|
env:
|
|
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
|
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
PYTHONPATH: src
|
|
run: |
|
|
python3 scripts/publish.py \
|
|
"${{ github.ref_name }}" \
|
|
"${{ github.repository }}"
|