diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85a1a66..7b1a828 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ name: Build on: pull_request: + pull_request_target: + types: + - closed release: types: - published @@ -79,7 +82,7 @@ jobs: - name: Publish package - test uses: pypa/gh-action-pypi-publish@release/v1 - if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true with: user: __token__ password: ${{ secrets.PYPI_TEST_TOKEN }} diff --git a/setup.py b/setup.py index b3da3a6..5cd1f43 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ # Stolen from Shapely's setup.py # Environment variables influence this script. # -# MDAL_LIBRARY_PATH: a path to a MDAL C++ shared library. +# MDAL_LIBRARY_PATH: a path to a MDAL C++ shared library. # # NB: within this setup scripts, software versions are evaluated according # to https://www.python.org/dev/peps/pep-0440/.