Skip to content

Commit 63a842c

Browse files
committed
fix publish token
1 parent e538625 commit 63a842c

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed
Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
91
name: Upload Python Package
102

113
on:
124
release:
135
types: [published]
14-
# push:
15-
# branches: ["main"]
6+
push:
7+
branches: ["main"]
168

179
jobs:
1810
deploy:
@@ -22,16 +14,18 @@ jobs:
2214
id-token: write
2315

2416
steps:
25-
- uses: actions/checkout@v4
26-
- name: Install uv
27-
uses: astral-sh/setup-uv@v4
28-
with:
29-
version: "latest"
17+
- uses: actions/checkout@v3
3018
- name: Set up Python
31-
run: uv python install 3.12
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.x'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build
3226
- name: Build package
33-
run: uv build
27+
run: python -m build
3428
- name: Publish package
3529
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3630
with:
37-
user: __token__
31+
user: __token__

0 commit comments

Comments
 (0)