Skip to content

Commit

Permalink
Updating publishing workflow (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm authored Apr 16, 2024
1 parent c4eceb4 commit ce9b0f1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
tags:
- "*"
paths-ignore:
- "joss/**"
- "docs/**"
pull_request:

jobs:
Expand Down Expand Up @@ -73,17 +70,18 @@ jobs:
with:
path: dist/*

upload_pypi:
publish:
environment:
name: pypi
url: https://pypi.org/p/exoplanet
permissions:
id-token: write
needs: [tests, build]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit ce9b0f1

Please sign in to comment.