Skip to content

Commit

Permalink
Add supports PyPI's trusted publishing implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nycholas committed Oct 28, 2024
1 parent e5b8836 commit f5cad86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ jobs:
runs-on: ${{ matrix.platform }}
permissions:
contents: write
id-token: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -212,8 +213,6 @@ jobs:
continue-on-error: true
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
packages-dir: dist-${{ matrix.platform }}-${{ matrix.python-version }}/
skip-existing: true
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
runs-on: ${{ matrix.platform }}
permissions:
contents: write
id-token: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -111,8 +112,6 @@ jobs:
- name: Publish distribution to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: dist-${{ matrix.platform }}-${{ matrix.python-version }}/
- name: Create GitHub Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "Flask-JSONRPC"
version = "4.0.0a5"
version = "4.0.0a6"
description = "Adds JSONRPC support to Flask."
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE.txt"}
Expand Down

0 comments on commit f5cad86

Please sign in to comment.