mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
rename 'params.package' to 'params.name' and 'params.artifacts.wheel' to 'params.artifacts.package'
This commit is contained in:
4
.github/workflows/Package.yml
vendored
4
.github/workflows/Package.yml
vendored
@@ -14,14 +14,14 @@ on:
|
|||||||
default: 'wheel'
|
default: 'wheel'
|
||||||
type: string
|
type: string
|
||||||
artifact:
|
artifact:
|
||||||
description: 'Name of the wheel artifact.'
|
description: 'Name of the package artifact.'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Package:
|
Package:
|
||||||
name: 📦 Package in Wheel Format
|
name: 📦 Package in Source and Wheel Format
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
4
.github/workflows/Params.yml
vendored
4
.github/workflows/Params.yml
vendored
@@ -40,12 +40,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
name = '${{ inputs.name }}'
|
name = '${{ inputs.name }}'
|
||||||
params = {
|
params = {
|
||||||
'package': name,
|
'name': name,
|
||||||
'python_version': '${{ inputs.python_version }}',
|
'python_version': '${{ inputs.python_version }}',
|
||||||
'artifacts': {
|
'artifacts': {
|
||||||
'coverage': f'{name}-coverage',
|
'coverage': f'{name}-coverage',
|
||||||
'typing': f'{name}-typing',
|
'typing': f'{name}-typing',
|
||||||
'wheel': f'{name}-wheel',
|
'package': f'{name}-package',
|
||||||
'doc': f'{name}-doc',
|
'doc': f'{name}-doc',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
.github/workflows/PublishOnPyPI.yml
vendored
2
.github/workflows/PublishOnPyPI.yml
vendored
@@ -14,7 +14,7 @@ on:
|
|||||||
default: 'wheel twine'
|
default: 'wheel twine'
|
||||||
type: string
|
type: string
|
||||||
artifact:
|
artifact:
|
||||||
description: 'Name of the wheel artifact.'
|
description: 'Name of the package artifact.'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
mypy_args: -m ${{ fromJson(needs.Params.outputs.params).package }}
|
mypy_args: -m ${{ fromJson(needs.Params.outputs.params).name }}
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
- Params
|
- Params
|
||||||
- Coverage
|
- Coverage
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
requirements: 'wheel'
|
requirements: 'wheel'
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
- Release
|
- Release
|
||||||
- Package
|
- Package
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
requirements: 'wheel twine'
|
requirements: 'wheel twine'
|
||||||
|
|||||||
Reference in New Issue
Block a user