Skip to content

Commit 4cb7017

Browse files
added signing and publishing to test pypi
1 parent 8684786 commit 4cb7017

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
permissions:
1414
contents: read
15+
id-token: write
1516

1617
jobs:
1718
build:
@@ -31,4 +32,17 @@ jobs:
3132
- name: Build with hachling
3233
run: |
3334
python -m build
34-
ls
35+
ls
36+
- name: Install cosign
37+
uses: sigstore/[email protected]
38+
with:
39+
inputs: dist/scsctl-0.0.1-py3-none-any.whl
40+
- name: Sign with sigstore using GitHub App credentials
41+
run: |
42+
sigstore sign dist/scsctl-0.0.1-py3-none-any.whl
43+
44+
- name: Publish distribution 📦 to Test PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1
46+
with:
47+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
48+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)