diff --git a/.github/environment.yml b/.github/environment.yml index 235fca3..26096eb 100644 --- a/.github/environment.yml +++ b/.github/environment.yml @@ -6,3 +6,5 @@ dependencies: - numpy - pdal - compilers + - python + - pip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4987536..3090d83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,9 @@ jobs: url: https://pypi.org/p/pdal-plugins permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + strategy: + fail-fast: true + steps: - uses: actions/checkout@v3 - name: Setup micromamba @@ -31,9 +34,11 @@ jobs: environment-file: .github/environment.yml - name: Install dependencies + shell: bash -l {0} run: | python -m pip install build pipx twine pipx run build --sdist -Ccmake.define.CMAKE_BUILD_WITH_INSTALL_RPATH=ON + - name: Publish package distributions to PyPI if: github.event_name == 'release' && github.event.action == 'published' uses: pypa/gh-action-pypi-publish@release/v1