Skip to content

Commit 0a2ad1f

Browse files
committed
troubleshoot missing sdist file
1 parent a4c8522 commit 0a2ad1f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ jobs:
3333
- name: Build Package
3434
run: python -m build
3535

36-
- uses: actions/upload-artifact@v2
37-
with:
38-
name: netfoundry-pypi-${{ github.run_id }}
39-
path: dist/netfoundry-*.tar.gz
36+
- name: List workspace files in ./dist
37+
run: |
38+
ls -lAh ./dist/
4039
4140
- name: Publish Test Package
4241
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
@@ -45,6 +44,11 @@ jobs:
4544
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
4645
repository_url: https://test.pypi.org/legacy/
4746

47+
# - uses: actions/upload-artifact@v2
48+
# with:
49+
# name: netfoundry-pypi-${{ github.run_id }}
50+
# path: dist/netfoundry-*.tar.gz
51+
4852
# - name: Publish Release Package
4953
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
5054
# with:

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ FROM python:3.9-slim-buster
22
COPY ./dist/netfoundry-*.tar.gz /tmp/
33
RUN pip install --upgrade pip
44
RUN pip install /tmp/netfoundry-*.tar.gz
5+
RUN rm -f /tmp/netfoundry-*.tar.gz
56
CMD ["bash"]

0 commit comments

Comments
 (0)