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 29, 2024
1 parent e5b8836 commit 03e87cc
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "CodeQL"

concurrency:
group: codeql
cancel-in-progress: true

on:
push:
branches: ["master"]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/on_update.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: On update

concurrency:
group: development
cancel-in-progress: true

on:
push:
branches-ignore:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build and publish pre release

concurrency: staging

on:
push:
branches:
Expand Down Expand Up @@ -177,8 +179,10 @@ jobs:
name: Publish to TestPyPI
needs: [build, build-wheels]
runs-on: ${{ matrix.platform }}
environment: staging
permissions:
contents: write
id-token: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -212,8 +216,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
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build and publish release

concurrency: production

on:
push:
tags:
Expand Down Expand Up @@ -77,8 +79,10 @@ jobs:
name: Publish to PyPI and generate GitHub release ${{ github.ref_name }}
needs: [build, build-wheels]
runs-on: ${{ matrix.platform }}
environment: production
permissions:
contents: write
id-token: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -111,8 +115,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
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Tests [Docker]

concurrency:
group: testing
cancel-in-progress: true

on:
push:
branches:
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.0a7"
description = "Adds JSONRPC support to Flask."
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE.txt"}
Expand Down

0 comments on commit 03e87cc

Please sign in to comment.