-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add supports PyPI's trusted publishing implementation
- Loading branch information
Showing
6 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
name: Build and publish release | ||
|
||
concurrency: production | ||
|
||
on: | ||
push: | ||
tags: | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters