From dade6c0c4c9c33b403d26f0d9ed7e8b2b988cfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Christian=20Galbo=20Engstr=C3=B8m?= Date: Thu, 23 Jan 2025 19:53:43 +0100 Subject: [PATCH] Attempting to fix publishing --- .github/actions/publish/action.yml | 37 ++++++++---------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 8faa20e..de14246 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -2,30 +2,13 @@ name: Publish description: Publish the package to PyPI runs: - using: "composite" - steps: - - name: Set lowercase repository owner - run: | - echo "OWNER=$(echo \"${OWNER}\" | tr '[:upper:]' '[:lower:]')" >> "${GITHUB_ENV}" - echo "REPO_NAME=$(echo \"${GITHUB_REPOSITORY}\" | tr '[:upper:]' '[:lower:]')" >> "${GITHUB_ENV}" - env: - OWNER: '${{ github.repository_owner }}' - GITHUB_REPOSITORY: '${{ github.repository }}' - shell: bash - - - name: Debug variables - run: | - echo "OWNER=${OWNER}" - echo "REPO_NAME=${REPO_NAME}" - shell: bash - - - name: Download all the dists - uses: actions/download-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - env: - GITHUB_REPOSITORY: ${{ env.OWNER }}/${{ env.REPO_NAME }} + using: "composite" + steps: + - name: Download all the dists + uses: actions/download-artifact@v4 + with: + name: python-package-distributions + path: dist/ + + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1.9.0 \ No newline at end of file