We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4eceb4 commit ce9b0f1Copy full SHA for ce9b0f1
.github/workflows/tests.yml
@@ -6,9 +6,6 @@ on:
6
- main
7
tags:
8
- "*"
9
- paths-ignore:
10
- - "joss/**"
11
- - "docs/**"
12
pull_request:
13
14
jobs:
@@ -73,17 +70,18 @@ jobs:
73
70
with:
74
71
path: dist/*
75
72
76
- upload_pypi:
+ publish:
+ environment:
+ name: pypi
+ url: https://pypi.org/p/exoplanet
77
+ permissions:
78
+ id-token: write
79
needs: [tests, build]
80
runs-on: ubuntu-latest
- if: startsWith(github.ref, 'refs/tags/')
81
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
82
steps:
83
- uses: actions/download-artifact@v4
84
85
name: artifact
86
path: dist
-
87
- uses: pypa/gh-action-pypi-publish@v1.8.14
- with:
88
- user: __token__
89
- password: ${{ secrets.pypi_password }}
0 commit comments