Skip to content

Commit f5565ad

Browse files
committed
ci: publish workflowをリファクタ
1 parent 4eb1cd8 commit f5565ad

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ env:
1111
UV_VERSION: 0.5.31
1212

1313
jobs:
14-
build:
14+
publish:
1515
runs-on: ubuntu-24.04
16+
environment: pypi
17+
permissions:
18+
contents: read
19+
id-token: write
1620
steps:
1721
- uses: actions/checkout@v4
1822

@@ -21,28 +25,6 @@ jobs:
2125
version: ${{ env.UV_VERSION }}
2226
enable-cache: false
2327

24-
- name: Build
25-
run: uv build --no-sources
26-
27-
- name: Upload dist
28-
uses: actions/upload-artifact@v4
29-
with:
30-
name: dist
31-
path: dist
32-
compression-level: 0
33-
34-
publish:
35-
needs: build
36-
runs-on: ubuntu-24.04
37-
environment: pypi
38-
permissions:
39-
id-token: write
40-
steps:
41-
- name: Download dist
42-
uses: actions/download-artifact@v4
43-
with:
44-
name: dist
45-
path: dist
28+
- run: uv build --no-sources
4629

47-
- name: Publish package distributions to PyPI
48-
uses: pypa/gh-action-pypi-publish@release/v1
30+
- run: uv publish

0 commit comments

Comments
 (0)