mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Use is_release_tag.
This commit is contained in:
26
.github/workflows/CompletePipeline.yml
vendored
26
.github/workflows/CompletePipeline.yml
vendored
@@ -311,9 +311,8 @@ jobs:
|
|||||||
coverage: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
|
coverage: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
|
||||||
typing: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }}
|
typing: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }}
|
||||||
|
|
||||||
ReleasePage:
|
TriggerTaggedRelease:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishReleaseNotes.yml@dev
|
uses: pyTooling/Actions/.github/workflows/TagReleaseCommit.yml@dev
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
needs:
|
needs:
|
||||||
- Prepare
|
- Prepare
|
||||||
- UnitTesting
|
- UnitTesting
|
||||||
@@ -321,7 +320,25 @@ jobs:
|
|||||||
# - StaticTypeCheck
|
# - StaticTypeCheck
|
||||||
- Package
|
- Package
|
||||||
- PublishToGitHubPages
|
- PublishToGitHubPages
|
||||||
|
if: needs.Prepare.outputs.is_release_commit
|
||||||
|
permissions:
|
||||||
|
contents: write # required for create tag
|
||||||
|
actions: write # required for trigger workflow
|
||||||
|
with:
|
||||||
|
version: ${{ needs.Prepare.outputs.version }}
|
||||||
|
auto_tag: ${{ needs.Prepare.outputs.is_release_commit }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
ReleasePage:
|
||||||
|
uses: pyTooling/Actions/.github/workflows/PublishReleaseNotes.yml@dev
|
||||||
|
needs:
|
||||||
|
- Prepare
|
||||||
|
- UnitTesting
|
||||||
|
# - AppTesting
|
||||||
|
# - StaticTypeCheck
|
||||||
|
- Package
|
||||||
|
- PublishToGitHubPages
|
||||||
|
if: needs.Prepare.outputs.is_release_tag
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
actions: write
|
actions: write
|
||||||
@@ -331,10 +348,11 @@ jobs:
|
|||||||
|
|
||||||
PublishOnPyPI:
|
PublishOnPyPI:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
|
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
needs:
|
needs:
|
||||||
|
- Prepare
|
||||||
- UnitTestingParams
|
- UnitTestingParams
|
||||||
- ReleasePage
|
- ReleasePage
|
||||||
|
if: needs.Prepare.outputs.is_release_tag
|
||||||
with:
|
with:
|
||||||
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
||||||
requirements: -r dist/requirements.txt
|
requirements: -r dist/requirements.txt
|
||||||
|
|||||||
5
.github/workflows/_Checking_JobTemplates.yml
vendored
5
.github/workflows/_Checking_JobTemplates.yml
vendored
@@ -208,7 +208,6 @@ jobs:
|
|||||||
|
|
||||||
ReleasePage:
|
ReleasePage:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishReleaseNotes.yml@dev
|
uses: pyTooling/Actions/.github/workflows/PublishReleaseNotes.yml@dev
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
needs:
|
needs:
|
||||||
- Prepare
|
- Prepare
|
||||||
- UnitTesting
|
- UnitTesting
|
||||||
@@ -216,7 +215,7 @@ jobs:
|
|||||||
# - StaticTypeCheck
|
# - StaticTypeCheck
|
||||||
- Package
|
- Package
|
||||||
- PublishToGitHubPages
|
- PublishToGitHubPages
|
||||||
secrets: inherit
|
if: needs.Prepare.outputs.is_release_tag
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
actions: write
|
actions: write
|
||||||
@@ -226,11 +225,11 @@ jobs:
|
|||||||
|
|
||||||
PublishOnPyPI:
|
PublishOnPyPI:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
|
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
needs:
|
needs:
|
||||||
- UnitTestingParams
|
- UnitTestingParams
|
||||||
- ReleasePage
|
- ReleasePage
|
||||||
# - Package
|
# - Package
|
||||||
|
if: needs.Prepare.outputs.is_release_tag
|
||||||
with:
|
with:
|
||||||
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
||||||
requirements: -r dist/requirements.txt
|
requirements: -r dist/requirements.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user