From ddd8a0a09df3d9f88f4006a738233df8fd33a332 Mon Sep 17 00:00:00 2001 From: Christian Knittl-Frank Date: Sun, 6 Jun 2021 00:10:10 +0200 Subject: [PATCH] Try to make workflow run 4 --- .github/workflows/publish.yml | 8 +++++--- .github/workflows/release.yml | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 13d163b..ca6832a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,13 @@ # This workflow will upload a Python Package to PyPI when a release is published -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries +# For more information see: +# - https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries +# - https://github.com/pypa/gh-action-pypi-publish name: Upload Python Package on: release: - types: [created, edited, published, released] + types: [published] jobs: deploy: @@ -26,7 +28,7 @@ jobs: run: | python setup.py sdist bdist_wheel - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd7292f..a227b8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,3 +19,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_PAT }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Does not trigger release + with: + name: Release ${{ github.ref }}