From 95b7c30e06515f279bf09bf74e0145e142abc872 Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Thu, 5 Oct 2023 14:33:10 -0700 Subject: [PATCH] Fix TestPyPI upload (#22) * ci: Include package output dir in workflow step. * ci: Add a step to copy the package files to the proper directory. * ci: Create the dist directory before trying to copy files into it. Signed-off-by: v12ganesh ganesh.v@tektronix.com --- .github/workflows/package-testpypi.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/package-testpypi.yml b/.github/workflows/package-testpypi.yml index ec2f9372..d577c391 100644 --- a/.github/workflows/package-testpypi.yml +++ b/.github/workflows/package-testpypi.yml @@ -32,6 +32,11 @@ jobs: vcs_release: 'false' build_metadata: ${{ env.VERSION }} - uses: hynek/build-and-inspect-python-package@v1.5 + id: build-pkg + - name: Copy package to dist/ folder + run: | + mkdir -p dist/ + cp ${{ steps.build-pkg.outputs.dist }}/*.whl ${{ steps.build-pkg.outputs.dist }}/*.tar.gz dist/ - name: Upload package to Test PyPI uses: pypa/gh-action-pypi-publish@v1.8.8 with: