We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9bd2be6 + 4143b6e commit ceec27cCopy full SHA for ceec27c
1 file changed
action.yml
@@ -14,6 +14,7 @@ runs:
14
steps:
15
- name: Archive artifact
16
shell: bash
17
+ if: runner.os != 'Windows'
18
run: |
19
tar \
20
--dereference --hard-dereference \
@@ -22,6 +23,21 @@ runs:
22
23
--exclude=.git \
24
--exclude=.github \
25
.
26
+
27
+ # Massage the paths for Windows only
28
+ - name: Archive artifact
29
+ shell: bash
30
+ if: runner.os == 'Windows'
31
+ run: |
32
+ tar \
33
+ --dereference --hard-dereference \
34
+ --directory "${{ inputs.path }}" \
35
+ -cvf "${{ runner.temp }}\artifact.tar" \
36
+ --exclude=.git \
37
+ --exclude=.github \
38
+ --force-local \
39
+ "."
40
41
- name: Upload artifact
42
uses: actions/upload-artifact@main
43
with:
0 commit comments