Skip to content

Commit

Permalink
update build workflow (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Nov 18, 2023
1 parent a92e0c7 commit be248e8
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,14 @@ name: build

on:
release:
types:
- published
types: [ released ]
pull_request:
workflow_dispatch:

jobs:
publish:
name: publish package to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- run: pip install tox
- run: tox -e build-dist
- uses: pypa/gh-action-pypi-publish@v1.6.4
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
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 be248e8

Please sign in to comment.