Skip to content

Commit add550e

Browse files
committed
Updated deploy action
1 parent 6702438 commit add550e

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ on:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77

88
jobs:
9-
build:
10-
name: Build
9+
deploy:
10+
name: Deploy
1111
runs-on: ubuntu-latest
12+
environment: pypi
13+
permissions:
14+
id-token: write
1215
steps:
1316
- name: Check out code
1417
uses: actions/checkout@v4
@@ -28,26 +31,7 @@ jobs:
2831
python -m build
2932
python -m twine check dist/*
3033
31-
- name: Upload artifacts
32-
uses: actions/upload-artifact@v4
33-
with:
34-
path: ./dist
35-
36-
publish:
37-
name: Publish
38-
needs: [build]
39-
runs-on: ubuntu-latest
40-
environment: pypi
41-
permissions:
42-
id-token: write
43-
steps:
44-
- name: Download artifacts
45-
uses: actions/download-artifact@v4
46-
4734
- name: Publish to TestPyPI
4835
uses: pypa/gh-action-pypi-publish@release/v1
4936
with:
5037
repository-url: https://test.pypi.org/legacy/
51-
52-
- name: Publish to PyPI
53-
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)