gha: Fix the trigger in the PyPI publication action

This commit is contained in:
Christian Decker
2021-10-06 15:56:34 +02:00
parent 284a6a9024
commit 24e60055bc

View File

@@ -50,7 +50,7 @@ jobs:
python -m build --sdist --wheel --outdir dist/ . python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to Test PyPI - name: Publish distribution 📦 to Test PyPI
if: github.repository == ElementsProject/lightning if: github.repository == 'ElementsProject/lightning'
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@master
env: env:
WORKDIR: ${{ matrix.WORKDIR }} WORKDIR: ${{ matrix.WORKDIR }}
@@ -61,7 +61,7 @@ jobs:
skip_existing: true skip_existing: true
- name: Publish distribution 📦 to PyPI - name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags') && github.repository == ElementsProject/lightning if: startsWith(github.ref, 'refs/tags') && github.repository == 'ElementsProject/lightning'
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@master
env: env:
WORKDIR: ${{ matrix.WORKDIR }} WORKDIR: ${{ matrix.WORKDIR }}