Skip to content

Commit

Permalink
Merge pull request #89 from sandialabs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mrbuche authored Jan 10, 2023
2 parents d4ee172 + b24292b commit c46bd63
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [ published ]
jobs:
test:
if: github.event_name != 'release'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -15,3 +18,13 @@ jobs:
pip install maturin
maturin build --features python
pip install target/wheels/*.whl
publish:
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: publish
run: |
pip install maturin
maturin publish -F python -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 comments on commit c46bd63

Please sign in to comment.