Skip to content

Commit 3b8095d

Browse files
authored
Update release.yaml
1 parent a6e4e8b commit 3b8095d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install pypa/build
1919
run: pip install build
2020
- name: Build a binary wheel and a source tarball
21-
run: python3 -m build
21+
run: python -m build
2222
- name: Store the distribution packages
2323
uses: actions/upload-artifact@v4
2424
with:
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
environment:
3636
name: pypi
37-
url: https://pypi.org/p/autointent # Replace <package-name> with your PyPI project name
37+
url: https://pypi.org/p/test_ci_release
3838
permissions:
3939
id-token: write # IMPORTANT: mandatory for trusted publishing
4040

@@ -44,7 +44,6 @@ jobs:
4444
with:
4545
name: python-package-distributions
4646
path: dist/
47-
4847
- name: Publish distribution 📦 to PyPI
4948
uses: pypa/gh-action-pypi-publish@release/v1
5049

@@ -73,12 +72,16 @@ jobs:
7372
inputs: >-
7473
./dist/*.tar.gz
7574
./dist/*.whl
76-
release-signing-artifacts: false # Prevent the action from uploading artifacts, because, by default it will uplpoad artifacts with tag name too
75+
# Prevent the action from uploading artifacts, because, by default it will uplpoad artifacts with tag name, too
76+
release-signing-artifacts: false
7777

78-
- name: Upload artifacts to release
79-
uses: softprops/action-gh-release@v1
80-
with:
81-
files: |
82-
./dist/*
78+
- name: Upload artifact signatures to GitHub Release
8379
env:
8480
GITHUB_TOKEN: ${{ github.token }}
81+
# Upload to GitHub Release using the `gh` CLI.
82+
# `dist/` contains the built packages, and the
83+
# sigstore-produced signatures and certificates.
84+
run: >-
85+
gh release upload
86+
'${{ github.ref_name }}' dist/**
87+
--repo '${{ github.repository }}'

0 commit comments

Comments
 (0)