Skip to content

2D Tilt Correction #600

2D Tilt Correction

2D Tilt Correction #600

Workflow file for this run

name: Release
on:
pull_request:
push:
tags:
- '*'
jobs:
publish:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@99401c364fa51c9c507d3cd6d272049278ac0b2c # v2.4.0
# NOTE: Uncomment "if" if you do not want this to run for every PR.
# if: ((github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || contains(github.event.pull_request.labels.*.name, 'Build wheels'))
with:
save_artifacts: true
upload_to_pypi: false
test_extras: test
test_command: pytest $GITHUB_WORKSPACE/specreduce/tests
upload:
if: startsWith(github.ref, 'refs/tags/v')
name: Upload built artifacts to PyPI
runs-on: ubuntu-latest
needs: [ publish ]
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
with:
merge-multiple: true
pattern: dist-*
path: dist
- name: Run upload
uses: pypa/gh-action-pypi-publish@release/v1