Add support for macOS-based workflows

This commit is contained in:
Robert-96
2022-08-09 02:25:59 +03:00
parent 780ca3f8cd
commit ef7661905b

View File

@@ -14,7 +14,7 @@ runs:
steps: steps:
- name: Archive artifact - name: Archive artifact
shell: bash shell: bash
if: runner.os != 'Windows' if: runner.os == 'Linux'
run: | run: |
tar \ tar \
--dereference --hard-dereference \ --dereference --hard-dereference \
@@ -24,6 +24,19 @@ runs:
--exclude=.github \ --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 # Massage the paths for Windows only
- name: Archive artifact - name: Archive artifact
shell: bash shell: bash