Skip to content

Commit 397f818

Browse files
committed
Updated deploy method
1 parent 502896d commit 397f818

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
tags:
66
- "v*.*.*"
77
workflow_dispatch:
8-
9-
permissions:
10-
contents: read
11-
id-token: write
128

139
jobs:
1410
build:
@@ -20,7 +16,7 @@ jobs:
2016
python-version: "3.10"
2117

2218
- name: Install build backend
23-
run: python -m pip install --upgrade pip build
19+
run: python -m pip install --upgrade build twine
2420

2521
- name: Clean old builds
2622
run: rm -rf dist build *.egg-info
@@ -29,12 +25,11 @@ jobs:
2925
run: python -m build
3026

3127
- name: Check distribution metadata
32-
run: python -m pip install twine && twine check dist/*
28+
run: twine check dist/*
3329

34-
- name: Publish to PyPI
35-
uses: pypa/gh-action-pypi-publish@release/v1
36-
with:
37-
skip-existing: true
38-
packages-dir: dist
39-
verbose: true
30+
- name: Upload to PyPI
31+
env:
32+
TWINE_USERNAME: __token__
33+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
34+
run: twine upload dist/*
4035

0 commit comments

Comments
 (0)