Skip to content

Commit 7866619

Browse files
committed
Remove testpypi from release
1 parent c63c5db commit 7866619

File tree

1 file changed

+16
-62
lines changed

1 file changed

+16
-62
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ on:
66
- "v*"
77

88
jobs:
9-
10-
# Build Python Package.
11-
build-package:
12-
name: Build Package
9+
# Publish Python package to PyPI.
10+
publish-to-pypi:
11+
name: Publish to PyPI
1312

1413
runs-on: ubuntu-latest
1514

15+
environment:
16+
name: pypi
17+
url: https://pypi.org/p/ephys-link
18+
19+
permissions:
20+
id-token: write
21+
1622
steps:
1723
- name: 🛎 Checkout
1824
uses: actions/checkout@v4
@@ -27,65 +33,13 @@ jobs:
2733

2834
- name: 📦 Install Hatch
2935
uses: pypa/hatch@install
30-
36+
3137
- name: 🔨 Build Package
3238
run: hatch build
3339

34-
- name: ⬆️ Upload Artifacts
35-
uses: actions/upload-pages-artifact@v3
36-
with:
37-
name: python-package-distributions
38-
path: dist/
39-
40-
# Publishing to PyPI
41-
publish-to-test-pypi:
42-
name: Publish to Test PyPI
43-
44-
needs: build-package
45-
46-
runs-on: ubuntu-latest
47-
48-
environment:
49-
name: testpypi
50-
url: https://testpypi.org/p/ephys-link
51-
52-
permissions:
53-
id-token: write
54-
55-
steps:
56-
- name: ⬇️ Download Artifacts
57-
uses: actions/download-artifact@v4
58-
with:
59-
name: python-package-distributions
60-
path: dist/
61-
62-
- name: Publish distribution 📦 to PyPI
63-
uses: pypa/gh-action-pypi-publish@release/v1
64-
65-
publish-to-pypi:
66-
name: Publish to PyPI
67-
68-
needs: publish-to-test-pypi
69-
70-
runs-on: ubuntu-latest
71-
72-
environment:
73-
name: pypi
74-
url: https://pypi.org/p/ephys-link
75-
76-
permissions:
77-
id-token: write
78-
79-
steps:
80-
- name: ⬇️ Download Artifacts
81-
uses: actions/download-artifact@v4
82-
with:
83-
name: python-package-distributions
84-
path: dist/
85-
8640
- name: 📦 Publish Distribution to PyPI
8741
uses: pypa/gh-action-pypi-publish@release/v1
88-
42+
8943
# Build Windows executable and make release.
9044
build-and-release:
9145
name: Build Executable and Release
@@ -106,14 +60,14 @@ jobs:
10660

10761
- name: 📦 Install Hatch
10862
uses: pypa/hatch@install
109-
63+
11064
- name: 🔨 Build Executable
11165
run: hatch run exe
112-
113-
- name: 🤐 Zip Folder Build
66+
67+
- name: 🤐 Zip Build Folder
11468
# FIXME: Need correct CLI with correct folder name.
11569
run: Compress-Archive -Path dist/ephys-link-${{ github.ref_name }} -Destination dist/ephys-link-${{ github.ref_name }}.zip
116-
70+
11771
- name: 📦 Make Release
11872
uses: ncipollo/release-action@v1
11973
with:

0 commit comments

Comments
 (0)