mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-09 00:26:17 +00:00
Apply suggestions from code review
Co-authored-by: Yoann Chaudet <yoannchaudet@github.com>
This commit is contained in:
@@ -24,13 +24,13 @@ runs:
|
|||||||
--exclude=.github \
|
--exclude=.github \
|
||||||
.
|
.
|
||||||
|
|
||||||
# Remove the --hard-dereference option for macOS only
|
# Switch to gtar (GNU tar instead of bsdtar which is the default in the MacOS runners so we can use --hard-dereference)
|
||||||
- name: Archive artifact
|
- name: Archive artifact
|
||||||
shell: bash
|
shell: bash
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
tar \
|
gtar \
|
||||||
--dereference \
|
--dereference --hard-dereference \
|
||||||
--directory ${{ inputs.path }} \
|
--directory ${{ inputs.path }} \
|
||||||
-cvf ${{ runner.temp }}/artifact.tar \
|
-cvf ${{ runner.temp }}/artifact.tar \
|
||||||
--exclude=.git \
|
--exclude=.git \
|
||||||
|
|||||||
Reference in New Issue
Block a user