Skip to content

Commit 8bee803

Browse files
authored
Merge pull request #616 from FAIRmat-NFDI/build-artifacts
streamline build artifacts to upload job
2 parents 773c3f7 + 48e0359 commit 8bee803

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Upload Python Package
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
env:
89
python-version: 3.11
@@ -83,6 +84,11 @@ jobs:
8384
- run: |
8485
git reset --hard HEAD
8586
python -m build
87+
- name: Upload dist artifacts
88+
uses: actions/upload-artifact@v4
89+
with:
90+
name: dist-artifacts
91+
path: dist/
8692

8793
deploy:
8894
name: Upload to PyPI
@@ -98,8 +104,10 @@ jobs:
98104
with:
99105
fetch-depth: 0
100106
submodules: recursive
101-
- uses: actions/setup-python@v5
107+
- name: Download dist artifacts
108+
uses: actions/download-artifact@v4
102109
with:
103-
python-version: ${{ env.python-version }}
110+
name: dist-artifacts
111+
path: dist/
104112
- name: Publish package distributions to PyPI
105113
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)