2 Commits

Author SHA1 Message Date
Yoann Chaudet
ceec27c96b Merge pull request #5 from yoannchaudet/main
Add support for `tar` on Windows
2022-08-01 16:17:14 -07:00
Yoann Chaudet
4143b6e8b8 Add support for tar on Windows 2022-08-01 06:53:06 -07:00

View File

@@ -14,6 +14,7 @@ runs:
steps:
- name: Archive artifact
shell: bash
if: runner.os != 'Windows'
run: |
tar \
--dereference --hard-dereference \
@@ -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: