adding pypi publish
This commit is contained in:
parent
801bbd5e2a
commit
b927ae3d73
@ -29,4 +29,43 @@ jobs:
|
|||||||
run: poetry install
|
run: poetry install
|
||||||
|
|
||||||
- name: Run Tests # test script
|
- name: Run Tests # test script
|
||||||
run: poetry run python -m unittest discover -s tests
|
run: poetry run python -m unittest discover -s tests
|
||||||
|
|
||||||
|
publishLib:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Package 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: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install Poetry # dependency management
|
||||||
|
uses: abatilo/actions-poetry@v2.1.6
|
||||||
|
with:
|
||||||
|
poetry-version: ${{ matrix.poetry-version }}
|
||||||
|
|
||||||
|
- name: Add SarGit Repo
|
||||||
|
run: |
|
||||||
|
cat <<EOF > ~/.pypirc
|
||||||
|
[distutils]
|
||||||
|
index-servers = sargit
|
||||||
|
|
||||||
|
[sargit]
|
||||||
|
repository = https://git.sarsoo.xyz/api/packages/${{ secrets.PYPI_USERNAME }}/pypi
|
||||||
|
username = ${{ secrets.PYPI_USERNAME }}
|
||||||
|
password = ${{ secrets.PYPI_KEY }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
- name: Poetry Build
|
||||||
|
run: poetry build
|
||||||
|
|
||||||
|
- name: Poetry Publish
|
||||||
|
run: poetry publish
|
Loading…
Reference in New Issue
Block a user