Skip to content

Commit 6269675

Browse files
committed
Fix publish.yml
1 parent a6af89e commit 6269675

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,36 @@ jobs:
1010
build:
1111
name: Build distribution
1212
runs-on: ubuntu-latest
13-
environment:
14-
name: pypi
15-
url: https://pypi.org/p/armis_sdk
16-
permissions:
17-
id-token: write
1813
steps:
1914
- uses: actions/checkout@v4
2015

2116
- uses: ./.github/workflows/install_deps
2217

23-
- name: Build
18+
- name: Build a binary wheel and a source tarball
2419
run: poetry build
2520

21+
- name: Upload packages
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: python-package-distributions
25+
path: dist/
26+
27+
publish-to-pypi:
28+
name: Publish to PyPI
29+
needs:
30+
- build
31+
runs-on: ubuntu-latest
32+
environment:
33+
name: pypi
34+
url: https://pypi.org/p/armis_sdk
35+
permissions:
36+
id-token: write
37+
steps:
38+
- name: Download packages
39+
uses: actions/download-artifact@v4
40+
with:
41+
name: python-package-distributions
42+
path: dist/
43+
2644
- name: Publish to PyPI
2745
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)