Skip to content

Commit 5562e92

Browse files
fix: simplify publish workflow - direct to PyPI
1 parent 443ef08 commit 5562e92

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7-
inputs:
8-
version:
9-
description: 'Version to publish (leave empty for current version)'
10-
required: false
11-
type: string
127

138
jobs:
149
build:
@@ -40,32 +35,9 @@ jobs:
4035
name: python-package-distributions
4136
path: dist/
4237

43-
publish-testpypi:
44-
name: Publish to TestPyPI 🧪
45-
needs: build
46-
runs-on: ubuntu-latest
47-
environment:
48-
name: testpypi
49-
url: https://test.pypi.org/p/tempoeval
50-
permissions:
51-
id-token: write
52-
53-
steps:
54-
- name: Download artifact
55-
uses: actions/download-artifact@v4
56-
with:
57-
name: python-package-distributions
58-
path: dist/
59-
60-
- name: Publish to TestPyPI
61-
uses: pypa/gh-action-pypi-publish@release/v1
62-
with:
63-
repository-url: https://test.pypi.org/legacy/
64-
skip-existing: true
65-
6638
publish-pypi:
6739
name: Publish to PyPI 🚀
68-
needs: [build, publish-testpypi]
40+
needs: build
6941
runs-on: ubuntu-latest
7042
environment:
7143
name: pypi

0 commit comments

Comments
 (0)