Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@2835f0cacddf3f8de198db9afdb5354a5cebe0ef # v2.6.3
with:
upload_to_pypi: false
save_artifacts: true
test_extras: test
test_command: pytest -p no:warnings --pyargs reproject --log-cli-level=INFO
targets: |
Expand All @@ -57,5 +59,31 @@ jobs:
anaconda_keep_n_latest: 10

secrets:
pypi_token: ${{ secrets.pypi_token }}
anaconda_token: ${{ secrets.anaconda_token }}

upload:
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/project/reproject
if: >-
${{ startsWith(github.ref, 'refs/tags/v') &&
!endsWith(github.ref, '.dev') &&
(
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch'
)
}}
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: [publish]
Comment thread
Cadair marked this conversation as resolved.
Outdated
steps:
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
merge-multiple: true
pattern: dist-*
path: dist
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
Loading