-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverts publishing via trusted channel. See #528.
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 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
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ name: Build & release | |
# Read https://github.com/actions/runner/issues/491 for insights on complex workflow execution logic. | ||
"on": | ||
workflow_call: | ||
secrets: | ||
PYPI_TOKEN: | ||
required: false | ||
outputs: | ||
tagged_version: | ||
description: Tagged/released version (without leading 'v') | ||
|
@@ -194,7 +197,7 @@ jobs: | |
with: | ||
# XXX actionlint triggers this error: | ||
# property "workflow_update_github_pat" is not defined in object type {actions_runner_debug: string; | ||
# actions_step_debug: string; github_token: string} [expression] | ||
# actions_step_debug: string; github_token: string; pypi_token: string} [expression] | ||
# See: https://github.com/rhysd/actionlint/issues/148 | ||
repo-token: ${{ secrets.WORKFLOW_UPDATE_GITHUB_PAT || secrets.GITHUB_TOKEN }} | ||
tag: v${{ steps.get_version.outputs.tagged_version }} | ||
|
@@ -210,11 +213,6 @@ jobs: | |
strategy: | ||
matrix: ${{ fromJSON(needs.project-metadata.outputs.release_commits_matrix) }} | ||
runs-on: ubuntu-22.04 | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/${{ needs.project-metadata.outputs.package_name }} | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Download build artifacts | ||
uses: actions/[email protected] | ||
|
@@ -224,6 +222,8 @@ jobs: | |
- name: Push package to public PyPi repository | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
packages-dir: ${{ steps.download.outputs.download-path }} | ||
|
||
github-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