-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated deployment to PyPI on release #3
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
26bb264
Added deployment workflow for PyPI
ianmkenney bbaab5b
Missing URL for PyPI
ianmkenney 6e96b60
Redo of deploy workflow
ianmkenney f35e955
filename typo
ianmkenney 50f9b65
Try and build distribution on pull request
ianmkenney 8566f8e
reference variables properly in workflow
ianmkenney 0c47ad9
`env` context not available in `if`
ianmkenney c3910c8
Double equals
ianmkenney d9c588c
Needs single quotes...
ianmkenney 8febdba
singular artifact
ianmkenney d1d96f0
Stop worrying about pull request builds, figure out later
ianmkenney 1efbbfa
Use MDAnalysis deployment action
ianmkenney 5d92f25
Updated docs to reflect PyPI installations
ianmkenney 8e4b1ff
Added explicit import dependencies and documentation/source URLS
ianmkenney 3639984
Updated test_env.yaml
ianmkenney 1849d58
Added MDAnalysisTests as a test dependency for TestPyPI
ianmkenney a01de02
Updated deployment action args
ianmkenney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 | ||
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essentially you want to just have this workflow file: https://github.com/MDAnalysis/mda-xdrlib/blob/main/.github/workflows/deploy.yaml