pyOwlBoard/.gitea/workflows/publish.yaml
Fred Boniface f52da96f56
Some checks failed
Publish to PyPI and Gitea Package Server / publish-and-sync (push) Failing after 38s
Trying again
2024-10-31 20:16:31 +00:00

42 lines
995 B
YAML

name: Publish to PyPI and Gitea Package Server
on:
push:
tags:
- 'v*'
jobs:
publish-and-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
env:
TWINE_USER: ${{ secrets.PYPI_USERNAME }}
TWINE_PASS: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
- name: Publish to Gitea
env:
TWINE_USER: ${{ secrets.GT_PKG_USER }}
TWINE_PASS: ${{ secrets.GT_PKG_KEY }}
run: |
twine upload --repository-url https://git.fjla.uk/api/packages/owlboard/pypi dist/*