Skip to content

Commit b9c92c7

Browse files
add github action to test build and upload to pypi if tagged
1 parent 396ca75 commit b9c92c7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,16 @@ jobs:
8080
if: runner.os == 'Linux'
8181
run: |
8282
CodeEntropyPoseidon -f "CodeEntropy/tests/data/1AKI_prod_60.tpr" "CodeEntropy/tests/data/1AKI_prod_60.trr" -l "protein" -b 2 -e 12 -d 2 -t 2 --wm --res --uatom --topog 5 --solwm --solres --soluatom --solContact
83+
84+
publish:
85+
name: Publish to pypi if tagged
86+
runs-on: ubuntu-latest
87+
steps:
88+
- uses: actions/checkout@v2
89+
- uses: actions/setup-python@v2
90+
- uses: casperdcl/deploy-pypi@v2
91+
with:
92+
password: ${{ secrets.PYPI_API_TOKEN }}
93+
pip: wheel -w dist/ --no-deps .
94+
# only upload if a tag is pushed (otherwise just build & check)
95+
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}

0 commit comments

Comments
 (0)