mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 08:06:18 +00:00
Add support for macOS-based workflows
This commit is contained in:
15
action.yml
15
action.yml
@@ -14,7 +14,7 @@ runs:
|
||||
steps:
|
||||
- name: Archive artifact
|
||||
shell: bash
|
||||
if: runner.os != 'Windows'
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
@@ -24,6 +24,19 @@ runs:
|
||||
--exclude=.github \
|
||||
.
|
||||
|
||||
# Remove the --hard-dereference option for macOS only
|
||||
- name: Archive artifact
|
||||
shell: bash
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
tar \
|
||||
--dereference \
|
||||
--directory ${{ inputs.path }} \
|
||||
-cvf ${{ runner.temp }}/artifact.tar \
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
.
|
||||
|
||||
# Massage the paths for Windows only
|
||||
- name: Archive artifact
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user