Skip to content

Commit 3aa01ab

Browse files
committed
deployment via GH actions
uses MDAnalysis/pypi-deployment
1 parent 657db7e commit 3aa01ab

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build and upload to PyPi
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
release:
8+
types:
9+
- published
10+
11+
jobs:
12+
test_pypi_push:
13+
environment:
14+
name: deploy
15+
url: https://test.pypi.org/p/basicrta
16+
permissions:
17+
id-token: write
18+
if: |
19+
github.repository == 'Becksteinlab/basicrta' &&
20+
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
21+
name: Build, upload and test pure Python wheels to TestPypi
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: testpypi_deploy
28+
uses: MDAnalysis/pypi-deployment@main
29+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
30+
with:
31+
test_submission: true
32+
package_name: 'basicrta'
33+
34+
pypi_push:
35+
environment:
36+
name: deploy
37+
url: https://pypi.org/p/basicrta
38+
permissions:
39+
id-token: write
40+
if: |
41+
github.repository == 'Becksteinlab/basicrta' &&
42+
(github.event_name == 'release' && github.event.action == 'published')
43+
name: Build, upload and test pure Python wheels to PyPi
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
49+
- name: pypi_deploy
50+
uses: MDAnalysis/pypi-deployment@main
51+
if: github.event_name == 'release' && github.event.action == 'published'
52+
with:
53+
package_name: 'basicrta'

0 commit comments

Comments
 (0)