Skip to content

Commit 7adeac2

Browse files
authored
feat: setup trusted publishing (#20)
1 parent 27beaec commit 7adeac2

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
name: "Release PyPI"
22
description: "Release PyPI"
3-
inputs:
4-
pypi-token:
5-
required: true
6-
description: "PyPI token"
73
runs:
84
using: "composite"
95
steps:
106
- name: Release PyPI
117
shell: bash
128
run: |
13-
export UV_PUBLISH_PASSWORD="${{ inputs.pypi-token }}"
14-
export UV_PUBLISH_USERNAME="__token__"
15-
uv publish --publish-url https://upload.pypi.org/legacy/
9+
uv publish --publish-url https://upload.pypi.org/legacy/ --trusted-publishing always

.github/workflows/release.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
os: [
35-
ubuntu-latest,
36-
ubuntu-22.04-arm, # https://github.com/actions/partner-runner-images/issues/37 https://github.com/orgs/community/discussions/148648#discussioncomment-12099554
37-
macos-latest,
38-
macos-14-large
39-
]
40-
python: [
41-
12,
42-
13,
43-
]
35+
ubuntu-latest,
36+
ubuntu-22.04-arm, # https://github.com/actions/partner-runner-images/issues/37 https://github.com/orgs/community/discussions/148648#discussioncomment-12099554
37+
macos-latest,
38+
macos-14-large,
39+
]
40+
python: [12, 13]
4441

4542
steps:
4643
- name: Github context
@@ -61,7 +58,7 @@ jobs:
6158
enable-cache: false
6259
prune-cache: false
6360
python-version: 3.${{ matrix.python }}
64-
version: '0.5.24'
61+
version: "0.5.24"
6562
cache-suffix: 3.${{ matrix.python }}
6663

6764
- name: Fetch tags
@@ -103,8 +100,6 @@ jobs:
103100

104101
- name: Release PyPI
105102
uses: ./.github/actions/release-pypi
106-
with:
107-
pypi-token: ${{ secrets.PYPI_TOKEN }}
108103

109104
- name: Github release
110105
id: github-release

0 commit comments

Comments
 (0)