31 lines
816 B
YAML
31 lines
816 B
YAML
name: "Publish release to Gitea Packages"
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
# Publish on any tag starting with a `v`, e.g., v0.1.0
|
|
- v*
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
- name: Install Python 3.12
|
|
run: uv python install 3.12
|
|
- name: Build
|
|
run: uv build
|
|
- name: Install twine
|
|
run: uv add twine
|
|
- name: Publish
|
|
run: |
|
|
uv run python -m twine upload dist/* \
|
|
--repository-url https://gitea.psi.ch/api/packages/sls/pypi \
|
|
--username armborst_f \
|
|
--password ${{ secrets.REGISTRY_TOKEN_ARMBORST_F }} \
|
|
--verbose
|