File tree 1 file changed +17
-6
lines changed
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
1
3
on :
2
4
release :
3
5
types :
4
6
- published
5
7
8
+ concurrency :
9
+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
10
+ cancel-in-progress : true
11
+
6
12
jobs :
7
13
pypi-publish :
8
14
name : Upload release to PyPI
@@ -14,15 +20,20 @@ jobs:
14
20
id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
15
21
steps :
16
22
- uses : actions/checkout@v3
17
- - name : Set up Python
18
- uses : actions /setup-python@v4
23
+ - name : Setup micromamba
24
+ uses : conda-incubator /setup-miniconda@v3
19
25
with :
20
- python-version : ' 3.x'
26
+ miniforge-variant : Mambaforge
27
+ miniforge-version : latest
28
+ use-mamba : true
29
+ python-version : ${{ matrix.python-version }}
30
+ auto-update-conda : true
31
+ environment-file : .github/environment.yml
32
+
21
33
- name : Install dependencies
22
34
run : |
23
- python -m pip install build
24
- pip install build twine
25
- python -m build . --sdist
35
+ python -m pip install build pipx twine
36
+ pipx run build --sdist -Ccmake.define.CMAKE_BUILD_WITH_INSTALL_RPATH=ON
26
37
- name : Publish package distributions to PyPI
27
38
if : github.event_name == 'release' && github.event.action == 'published'
28
39
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments