Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add support for tar on Windows
  • Loading branch information
Yoann Chaudet committed Aug 1, 2022
1 parent 9bd2be6 commit 4143b6e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions action.yml
Expand Up @@ -14,6 +14,7 @@ runs:
steps:
- name: Archive artifact
shell: bash
if: runner.os != 'Windows'
run: |
tar \
--dereference --hard-dereference \
Expand All @@ -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:
Expand Down

0 comments on commit 4143b6e

Please sign in to comment.