Migrate to forgejo
This commit is contained in:
parent
828f8a9231
commit
4c6441182b
11 changed files with 211 additions and 233 deletions
28
.forgejo/workflows/publish.yml
Normal file
28
.forgejo/workflows/publish.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: Publish on PyPI
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ['*']
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Set up Python
|
||||
run: uv python install 3.10
|
||||
|
||||
# Forgejo cannot use PyPI trusted publishing (OIDC), so authenticate with
|
||||
# an API token, the same way the sibling repos publish their packages.
|
||||
- name: Build and publish
|
||||
env:
|
||||
FLIT_USERNAME: __token__
|
||||
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||
run: uvx flit publish
|
||||
Loading…
Add table
Add a link
Reference in a new issue