Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5 from yoannchaudet/main
Add support for `tar` on Windows
  • Loading branch information
Yoann Chaudet authored and GitHub committed Aug 1, 2022
2 parents 9bd2be6 + 4143b6e commit ceec27c
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 ceec27c

Please sign in to comment.