mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2026-05-13 19:36:54 +00:00
Merge branch 'main' into patch-1
This commit is contained in:
10
action.yml
10
action.yml
@@ -14,6 +14,10 @@ inputs:
|
||||
description: "Duration after which artifact will expire in days."
|
||||
required: false
|
||||
default: "1"
|
||||
include-hidden-files:
|
||||
description: "Include hidden files and directories (those starting with a dot) in the artifact. Excludes .git and .github regardless."
|
||||
required: false
|
||||
default: "false"
|
||||
outputs:
|
||||
artifact_id:
|
||||
description: "The ID of the artifact that was uploaded."
|
||||
@@ -32,7 +36,7 @@ runs:
|
||||
-cvf "$RUNNER_TEMP/artifact.tar" \
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
--exclude=".[^/]*" \
|
||||
${{ inputs.include-hidden-files != 'true' && '--exclude=.[^/]*' || '' }} \
|
||||
.
|
||||
echo ::endgroup::
|
||||
env:
|
||||
@@ -50,7 +54,7 @@ runs:
|
||||
-cvf "$RUNNER_TEMP/artifact.tar" \
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
--exclude=".[^/]*" \
|
||||
${{ inputs.include-hidden-files != 'true' && '--exclude=.[^/]*' || '' }} \
|
||||
.
|
||||
echo ::endgroup::
|
||||
env:
|
||||
@@ -68,7 +72,7 @@ runs:
|
||||
-cvf "$RUNNER_TEMP\artifact.tar" \
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
--exclude=".[^/]*" \
|
||||
${{ inputs.include-hidden-files != 'true' && '--exclude=.[^/]*' || '' }} \
|
||||
--force-local \
|
||||
"."
|
||||
echo ::endgroup::
|
||||
|
||||
Reference in New Issue
Block a user