initial commit
All checks were successful
Build and Upload Python Package / build (push) Successful in 52s
All checks were successful
Build and Upload Python Package / build (push) Successful in 52s
This commit is contained in:
28
.gitea/workflows/build-pypi.yml
Normal file
28
.gitea/workflows/build-pypi.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Build and Upload Python Package
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
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: 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/*
|
||||
Reference in New Issue
Block a user