-
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.
Make python publish a separate job (#69)
- Loading branch information
Showing
5 changed files
with
52 additions
and
36 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
name: Publish Python | ||
description: Publish Assets and Report | ||
name: Python Post-Publish | ||
description: Perform post-release operations for Python Libraries | ||
inputs: | ||
version: | ||
description: The published version | ||
|
@@ -76,26 +76,14 @@ runs: | |
- name: Run GitHub Publish script | ||
shell: bash | ||
id: publish-script | ||
run: ${{ github.action_path }}/publish.sh | ||
run: ${{ github.action_path }}/post-publish.sh | ||
env: | ||
GH_TOKEN: ${{ inputs.token }} | ||
VERSION: ${{ inputs.version }} | ||
TAG_TEMPLATE: ${{ inputs.tag_template }} | ||
PRODUCT_NAME: ${{ inputs.product_name }} | ||
DRY_RUN: ${{ inputs.dry_run }} | ||
FOLLOWING_VERSION: ${{ inputs.following_version }} | ||
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi | ||
- name: Publish distribution 📦 to PyPI | ||
if: inputs.dry_run == 'false' | ||
# Pinned due to https://github.com/pypa/gh-action-pypi-publish/issues/290 | ||
uses: pypa/[email protected] | ||
with: | ||
repository-url: ${{ inputs.repository_url }} | ||
- name: Do Not Publish distribution 📦 to PyPI on Dry Run | ||
if: inputs.dry_run == 'true' | ||
shell: bash | ||
run: | | ||
echo "Dry run, not uploading to PyPI" >> $GITHUB_STEP_SUMMARY | ||
- uses: actions/attest-build-provenance@v1 | ||
if: inputs.dry_run == 'false' | ||
with: | ||
|
File renamed without changes.
File renamed without changes.
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