Skip to content

Commit

Permalink
Merge pull request #296 from Becksteinlab/auto-deploy
Browse files Browse the repository at this point in the history
add automated deployment workflow
  • Loading branch information
orbeckst authored Sep 19, 2024
2 parents 799f8b8 + 3f1bf32 commit d6bbcfd
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and upload to PyPi

on:
push:
tags:
- "*"
release:
types:
- published

jobs:
test_pypi_push:
environment:
name: TestPyPi
url: https://test.pypi.org/p/GromacsWrapper
permissions:
id-token: write
if: |
github.repository == 'Becksteinlab/GromacsWrapper' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
name: "TestPyPi: Build, upload, and test pure Python wheels"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: testpypi_deploy
uses: MDAnalysis/pypi-deployment@main
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
with:
test_submission: true
package_name: 'GromacsWrapper'
module_name: 'gromacs'

pypi_push:
environment:
name: PyPi
url: https://pypi.org/p/GromacsWrapper
permissions:
id-token: write
if: |
github.repository == 'Becksteinlab/GromacsWrapper' &&
(github.event_name == 'release' && github.event.action == 'published')
name: "PyPi: Build, upload, and test pure Python wheels"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: pypi_deploy
uses: MDAnalysis/pypi-deployment@main
if: github.event_name == 'release' && github.event.action == 'published'
with:
package_name: 'GromacsWrapper'
module_name: 'gromacs'
4 changes: 3 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CHANGELOG for GromacsWrapper
==============================

2024-??-?? 0.9.1
2024-09-18 0.9.1
orbeckst, hsk17

* templates in `config.templates` are now stored as
Expand All @@ -13,6 +13,8 @@ orbeckst, hsk17
* fixed reporting of failures of GromacsCommand and DeprecationWarnings for use
of \s in regular expression strings (#285)
* fixed use of outdated numpy.NAN | INF by using nan | inf (#290)
* added automatic deployment workflow (using action MDAnalysis/pypi-deployment)
(#295)


2024-06-15 0.9.0
Expand Down

0 comments on commit d6bbcfd

Please sign in to comment.