mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2026-02-10 20:31:36 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ceec27c96b | ||
|
|
4143b6e8b8 |
16
action.yml
16
action.yml
@@ -14,6 +14,7 @@ runs:
|
||||
steps:
|
||||
- name: Archive artifact
|
||||
shell: bash
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
@@ -22,6 +23,21 @@ runs:
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
.
|
||||
|
||||
# Massage the paths for Windows only
|
||||
- name: Archive artifact
|
||||
shell: bash
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
--directory "${{ inputs.path }}" \
|
||||
-cvf "${{ runner.temp }}\artifact.tar" \
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
--force-local \
|
||||
"."
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user