6
0

Python package publish pipeline attempt

This commit is contained in:
Jon Michael Aanes 2023-12-04 16:45:18 +01:00
parent 89d4b5f112
commit e79c141ade

View File

@ -0,0 +1,24 @@
name: Python Package
on:
workflow_call:
inputs:
secrets:
PIPY_REPO_USER:
required: true
PIPY_REPO_PASS:
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: pip install -y build twine
- name: Check out repository code
uses: actions/checkout@v3
- name: Build
run: python3 -m build
- name: Publish
run: python3 -m twine upload --repository-url "https://gitea.example.com/api/packages/${{ secrets.PIPY_REPO_USER }}/pypi" -u ${{ secrets.PIPY_REPO_USER }} -p ${{ secrets.PIPY_REPO_PASS }} dist/*