Skip to content

Commit 6791a88

Browse files
committed
adapt pdal-plugins dist builder
1 parent 6b39af5 commit 6791a88

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,24 @@ jobs:
3131
with:
3232
miniforge-variant: Miniforge3
3333
miniforge-version: latest
34-
python-version: ${{ matrix.python-version }}
34+
python-version: '3.12'
3535
use-mamba: true
3636
auto-update-conda: true
3737
environment-file: .github/environment.yml
3838

39-
- name: Install build
39+
- name: Install dependencies
40+
shell: bash -l {0}
4041
run: |
41-
pip install build
42-
43-
- name: Build sdist
44-
run: python -m build --sdist -n
42+
python -m pip install build pipx twine
43+
pipx run build --sdist -Ccmake.define.CMAKE_BUILD_WITH_INSTALL_RPATH=ON
4544
4645
- uses: actions/upload-artifact@v4
4746
with:
4847
name: cibw-sdist
4948
path: dist/*.tar.gz
5049

51-
upload_pypi:
52-
name: Upload to PyPI
53-
needs: [build_sdist]
54-
runs-on: ubuntu-latest
55-
environment: test
56-
permissions:
57-
id-token: write
58-
if: github.event_name == 'release' && github.event.action == 'published'
59-
steps:
60-
- uses: actions/download-artifact@v4
61-
with:
62-
pattern: cibw-*
63-
path: dist
64-
merge-multiple: true
50+
- name: Publish package distributions to PyPI
51+
if: github.event_name == 'release' && github.event.action == 'published'
52+
uses: pypa/gh-action-pypi-publish@release/v1
6553

66-
- uses: pypa/gh-action-pypi-publish@release/v1
6754

0 commit comments

Comments
 (0)