Skip to content

Commit

Permalink
add build workflow that also upload to PyPI if releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed May 7, 2024
1 parent 7b2f075 commit 13fdcee
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build

on:
release:
types:
- released
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }}
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 13fdcee

Please sign in to comment.