Skip to content

Commit ce9b0f1

Browse files
authored
Updating publishing workflow (#322)
1 parent c4eceb4 commit ce9b0f1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- main
77
tags:
88
- "*"
9-
paths-ignore:
10-
- "joss/**"
11-
- "docs/**"
129
pull_request:
1310

1411
jobs:
@@ -73,17 +70,18 @@ jobs:
7370
with:
7471
path: dist/*
7572

76-
upload_pypi:
73+
publish:
74+
environment:
75+
name: pypi
76+
url: https://pypi.org/p/exoplanet
77+
permissions:
78+
id-token: write
7779
needs: [tests, build]
7880
runs-on: ubuntu-latest
79-
if: startsWith(github.ref, 'refs/tags/')
81+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
8082
steps:
8183
- uses: actions/download-artifact@v4
8284
with:
8385
name: artifact
8486
path: dist
85-
8687
- uses: pypa/gh-action-pypi-publish@v1.8.14
87-
with:
88-
user: __token__
89-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)