Skip to content

Commit

Permalink
Attempting to fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole-Christian Galbo Engstrøm committed Jan 23, 2025
1 parent 0c9d349 commit dade6c0
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dade6c0

Please sign in to comment.