5 Commits

Author SHA1 Message Date
Yoann Chaudet
f4e69017a7 Merge pull request #10 from Robert-96/main
Add support for macOS-based workflows
2022-08-09 11:57:32 -07:00
Dezmerean Robert
e361946409 Apply suggestions from code review
Co-authored-by: Yoann Chaudet <yoannchaudet@github.com>
2022-08-09 21:49:27 +03:00
Robert-96
ef7661905b Add support for macOS-based workflows 2022-08-09 02:25:59 +03:00
Yoann Chaudet
780ca3f8cd Merge pull request #7 from meowsbits/patch-1
fix syntax typo
2022-08-04 09:36:09 -07:00
meowsbits
4fe9084ffa fix syntax typo 2022-08-03 08:05:15 -07:00

View File

@@ -2,7 +2,7 @@ name: "Upload Pages artifact"
description: "A composite action that prepares your static assets to be deployed to GitHub Pages"
inputs:
path:
description: "Path of the directoring containing the static assets."
description: "Path of the directory containing the static assets."
required: true
default: "_site/"
retention-days:
@@ -14,7 +14,7 @@ runs:
steps:
- name: Archive artifact
shell: bash
if: runner.os != 'Windows'
if: runner.os == 'Linux'
run: |
tar \
--dereference --hard-dereference \
@@ -24,6 +24,19 @@ runs:
--exclude=.github \
.
# Switch to gtar (GNU tar instead of bsdtar which is the default in the MacOS runners so we can use --hard-dereference)
- name: Archive artifact
shell: bash
if: runner.os == 'macOS'
run: |
gtar \
--dereference --hard-dereference \
--directory ${{ inputs.path }} \
-cvf ${{ runner.temp }}/artifact.tar \
--exclude=.git \
--exclude=.github \
.
# Massage the paths for Windows only
- name: Archive artifact
shell: bash