Files
pwo/.gitea/workflows/build.yaml
Walter Oggioni 847350ce73
Some checks failed
CI / build (push) Failing after 4s
initial commit
2024-06-22 08:13:48 +08:00

23 lines
637 B
YAML

name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: woryzen
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Execute build
env:
TWINE_REPOSITORY_URL: ${{ vars.PYPI_REGISTRY_URL }}
TWINE_USERNAME: ${{ vars.PUBLISHER_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PUBLISHER_TOKEN }}
run: |
pip install -r requirements.txt
python -m build
python -m twine upload --repository gitea dist/*{.whl,rag.gz}