Some checks failed
Publish Python Package to Gitea / publish (push) Failing after 59s
34 lines
765 B
YAML
34 lines
765 B
YAML
name: Publish Python Package to Gitea
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install build tools
|
|
run: pip install --upgrade build twine
|
|
|
|
- name: Build distributions
|
|
run: python -m build
|
|
|
|
- name: Publish to Gitea Package Registry
|
|
env:
|
|
TWINE_USERNAME: ${{ secrets.GITEA_USERNAME }}
|
|
TWINE_PASSWORD: ${{ secrets.GITEA_TOKEN }}
|
|
run: |
|
|
twine upload \
|
|
--repository-url https://git.jc2009.com/api/packages/client-jiangchang/pypi \
|
|
dist/*
|