Python package publish pipeline attempt
This commit is contained in:
parent
89d4b5f112
commit
e79c141ade
24
.gitea/workflows/python-package.yaml
Normal file
24
.gitea/workflows/python-package.yaml
Normal 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/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user