Skip to content

Commit 7168a68

Browse files
Copilotneilime
andcommitted
feat(deploy/github-pages)!: accept build-artifact-id instead of build-artifact-name
Co-authored-by: neilime <[email protected]>
1 parent 4390d57 commit 7168a68

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

actions/deploy/github-pages/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ permissions:
5353
# Can be absolute or relative $GITHUB_WORKSPACE.
5454
build-path: ""
5555

56-
# The name of the "build" artifact to download.
56+
# The ID of the "build" artifact to download.
5757
# If not set, the action will use the local workspace files.
58-
build-artifact-name: ""
58+
build-artifact-id: ""
5959

6060
# The path to the performance budget file. See action [Check - URL - Lighthouse](../../check/url-lighthouse/README.md).
6161
# Default: `./budget.json`
@@ -84,7 +84,7 @@ permissions:
8484
| --------------------------- | --------------------------------------------------------------------------------------------------------------------- | ------------ | ----------------------- |
8585
| **`build-path`** | The path to the assets to deploy. | **false** | - |
8686
| | Can be absolute or relative $GITHUB_WORKSPACE. | | |
87-
| **`build-artifact-name`** | The name of the "build" artifact to download. | **false** | - |
87+
| **`build-artifact-id`** | The ID of the "build" artifact to download. | **false** | - |
8888
| | If not set, the action will use the local workspace files. | | |
8989
| **`budget-path`** | The path to the performance budget file. See action [Check - URL - Lighthouse](../../check/url-lighthouse/README.md). | **false** | `./budget.json` |
9090
| **`static-site-generator`** | The static site generator used to build the site. See <https://github.com/actions/configure-pages>. | **false** | - |

actions/deploy/github-pages/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ inputs:
1111
The path to the assets to deploy.
1212
Can be absolute or relative $GITHUB_WORKSPACE.
1313
required: false
14-
build-artifact-name:
14+
build-artifact-id:
1515
description: |
16-
The name of the "build" artifact to download.
16+
The ID of the "build" artifact to download.
1717
If not set, the action will use the local workspace files.
1818
required: false
1919
default: ""
@@ -44,10 +44,10 @@ runs:
4444
using: "composite"
4545
steps:
4646
- id: download-artifact
47-
if: ${{ inputs.build-artifact-name != '' }}
47+
if: ${{ inputs.build-artifact-id != '' }}
4848
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
4949
with:
50-
name: ${{ inputs.build-artifact-name }}
50+
artifact-id: ${{ inputs.build-artifact-id }}
5151
path: "/"
5252

5353
- id: prepare-variables

0 commit comments

Comments
 (0)