adding py publish to gitea

This commit is contained in:
Andy Pack 2025-02-17 00:09:26 +00:00
parent f344cd9d65
commit a647271273
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

@ -157,4 +157,26 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: publish
args: --package finlib --registry sargit
args: --package finlib --registry sargit
publishPy:
runs-on: ubuntu-latest
name: Publish Python Library
needs: [ build ] # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Install Python 3
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- uses: PyO3/maturin-action@v1
with:
command: publish
args: -r https://gitea.sheep-ghoul.ts.net/api/packages/sarsoo/pypi/simple -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
working-directory: ./pyfinlib