Skip to content

Commit

Permalink
Fix publish to testpypi, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleyadam committed Aug 12, 2024
1 parent 87a9e52 commit 06f14eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
47 changes: 1 addition & 46 deletions .github/workflows/publish-testpypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,49 +58,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
name: >-
Sign the Python distribution with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi

runs-on: ubuntu-latest

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
id-token: write # IMPORTANT: mandatory for sigstore

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/

- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--generate-notes
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ There are a number of items that still need to be done.

- ~~Implement format and linting checking in a GitHub actions pipeline using Ruff.~~
- ~~https://docs.astral.sh/ruff/integrations/~~
- Add GitHub actions for cutting a release and pushing to PyPi automatically.
- ~~Add GitHub actions for cutting a release and pushing to PyPi automatically.~~
- Implement additional devices as requested.
- Create a issue creation template for easier triaging of any issues or new features.
- Implement SSL on both HTTPS and WSS requests.
Expand Down

0 comments on commit 06f14eb

Please sign in to comment.