Skip to content

Commit 2c99cd0

Browse files
committed
Fix release script
1 parent 03c5075 commit 2c99cd0

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
jobs:
1111
package:
1212
runs-on: ubuntu-latest
13+
environment:
14+
name: release
15+
url: https://pypi.org/p/varformat
16+
permissions:
17+
id-token: write
1318
steps:
1419
- uses: actions/checkout@v4
1520
- name: Set up Python
@@ -20,22 +25,5 @@ jobs:
2025
run: |
2126
pip install -r scripts/package-requirements.txt
2227
python scripts/package.py
23-
- name: Save distribution as an artifact
24-
uses: actions/upload-artifact@v4
25-
with:
26-
name: package
27-
path: dist
28-
publish:
29-
runs-on: ubuntu-latest
30-
environment:
31-
name: release
32-
url: https://pypi.org/p/varformat
33-
permissions:
34-
id-token: write
35-
steps:
36-
- name: Restore distribution
37-
uses: actions/download-artifact@v4
38-
with:
39-
name: package
4028
- name: Publish distribution to PyPI
4129
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)