-
Notifications
You must be signed in to change notification settings - Fork 7
85 lines (67 loc) · 1.89 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build and upload to PyPI
on:
push:
tags:
- "*"
release:
types:
- published
concurrency:
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
build_wheels_pyedr:
environment:
name: deploy
url: https://pypi.org/p/pyedr
permissions:
id-token: write
if: "github.repository == 'MDAnalysis/panedr'"
name: Build pure Python wheel - pyedr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: install_deps
run: |
python -m pip install pipx
- name: install_and_build_pyedr
run: |
cd pyedr && python -m pip install build
python -m build --sdist --wheel --outdir ../dist/
- name: publish_pypi
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
build_wheels_panedr:
environment:
name: deploy
url: https://pypi.org/p/panedr
permissions:
id-token: write
if: "github.repository == 'MDAnalysis/panedr'"
name: Build pure Python wheel - panedr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: install_deps
run: |
python -m pip install pipx
- name: install_and_build_panedr
run: |
cd panedr && python -m pip install build
python -m build --sdist --wheel --outdir ../dist/
- name: publish_pypi
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1