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