jimaku-dl/.gitea/workflows/build-pypi.yml
sudacode 7e221f74bd
All checks were successful
Build and Upload Python Package / build (pull_request) Successful in 4m36s
fix workflow
2025-03-07 05:22:32 -08:00

33 lines
818 B
YAML

name: Build and Upload Python Package
on:
pull_request:
branches:
- master
types: [closed]
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/*