docker-apps-view/.gitea/workflows/build-pypi.yml
ksyasuda 184c123e23
Some checks failed
Build Docker Image / build (push) Failing after 8s
Build and Upload Python Package / build (push) Failing after 10s
Initial commit
2024-08-17 18:32:58 -07:00

32 lines
866 B
YAML

name: Build and Upload Python Package
on:
push:
branches:
- senpai
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Read version from file
id: read_version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build the package
run: python -m build
- name: Upload to Gitea PyPI Registry
run: |
twine upload --repository-url https://gitea.suda.codes/api/packages/sudacode/pypi -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} dist/*