Skip to content

Automatic deployment to PyPI on release (#3) #8

Automatic deployment to PyPI on release (#3)

Automatic deployment to PyPI on release (#3) #8

Workflow file for this run

name: Build and upload to PyPi
on:
push:
tags:
- "*"
release:
types:
- published
jobs:
pypi_push:
environment: deploy
if: "github.repository == 'MDAnalysis/PathSimAnalysis'"
name: Build, upload and test pure Python wheels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: testpypi_deploy
uses: MDAnalysis/pypi-deployment@main
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.TEST_PYPI_API_TOKEN }}
test_submission: true
tests: true
test_deps: 'pytest MDAnalysisTests'
package_name: 'pathsimanalysis'
- name: pypi_deploy
uses: MDAnalysis/pypi-deployment@main
if: github.event_name == 'release' && github.event.action == 'published'
with:
token: ${{ secrets.PYPI_API_TOKEN }}
package_name: 'pathsimanalysis'
tests: false