Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add support for macOS-based workflows
  • Loading branch information
Robert-96 committed Aug 8, 2022
1 parent 780ca3f commit ef76619
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion action.yml
Expand Up @@ -14,7 +14,7 @@ runs:
steps:
- name: Archive artifact
shell: bash
if: runner.os != 'Windows'
if: runner.os == 'Linux'
run: |
tar \
--dereference --hard-dereference \
Expand All @@ -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
Expand Down

0 comments on commit ef76619

Please sign in to comment.