jimaku-dl/.gitea/workflows/build-pypi.yml
InsaneDesperado 8059f5bd25
All checks were successful
Build and Upload Python Package / build (push) Successful in 4m47s
update workflow
2025-03-07 04:16:37 -08:00

32 lines
790 B
YAML

name: Build and Upload Python Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build the package
run: python -m build
- name: Publish to Custom PyPI Registry
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload --repository-url https://gitea.suda.codes/api/packages/sudacode/pypi dist/*