chore: add release workflow -- to be configured / tested
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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 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
|
||||
Reference in New Issue
Block a user