Skip to content

Commit 66f4e01

Browse files
committed
Merge branch 'master' into release-102
2 parents cc26efa + cb78c4c commit 66f4e01

File tree

1 file changed

+14
-40
lines changed

1 file changed

+14
-40
lines changed

.github/workflows/deploy.yaml

Lines changed: 14 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and upload to PyPI
1+
name: Build and upload to PyPi
22

33
on:
44
push:
@@ -8,55 +8,29 @@ on:
88
types:
99
- published
1010

11-
12-
concurrency:
13-
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
14-
cancel-in-progress: true
15-
16-
17-
defaults:
18-
run:
19-
shell: bash -l {0}
20-
21-
2211
jobs:
23-
build_wheels:
12+
pypi_push:
2413
environment: deploy
2514
if: "github.repository == 'MDAnalysis/GridDataFormats'"
26-
name: Build pure Python wheel
15+
name: Build, upload and test pure Python wheels
2716
runs-on: ubuntu-latest
2817

2918
steps:
3019
- uses: actions/checkout@v3
31-
with:
32-
fetch-depth: 0
33-
34-
- name: setup_miniconda
35-
uses: conda-incubator/setup-miniconda@v2
36-
with:
37-
python-version: 3.9
38-
auto-update-conda: true
39-
add-pip-as-python-dependency: true
40-
architecture: x64
41-
42-
- name: install_deps
43-
run: |
44-
python -m pip install build
45-
46-
- name: build
47-
run: |
48-
python -m build --sdist --wheel --outdir dist/
4920

50-
- name: publish_testpypi
51-
# Upload to testpypi on every tag
21+
- name: testpypi_deploy
22+
uses: MDAnalysis/pypi-deployment@main
5223
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
53-
uses: pypa/gh-action-pypi-publish@release/v1
5424
with:
55-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
56-
repository_url: https://test.pypi.org/legacy/
25+
token: ${{ secrets.TEST_PYPI_API_TOKEN }}
26+
test_submission: true
27+
package_name: GridDataFormats
28+
module_name: 'gridData'
5729

58-
- name: publish_pypi
30+
- name: pypi_deploy
31+
uses: MDAnalysis/pypi-deployment@main
5932
if: github.event_name == 'release' && github.event.action == 'published'
60-
uses: pypa/gh-action-pypi-publish@release/v1
6133
with:
62-
password: ${{ secrets.PYPI_API_TOKEN }}
34+
token: ${{ secrets.PYPI_API_TOKEN }}
35+
package_name: GridDataFormats
36+
module_name: 'gridData'

0 commit comments

Comments
 (0)