-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b748ae7
commit 75fb1d4
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,27 @@ jobs: | |
npm run build | ||
cd ./dist/portfolio/browser | ||
ls -al | ||
- name: Archive artifact | ||
shell: sh | ||
if: runner.os == 'Linux' | ||
run: | | ||
echo ::group::Archive artifact | ||
tar \ | ||
--dereference --hard-dereference \ | ||
--directory "$INPUT_PATH" \ | ||
-cvf "$RUNNER_TEMP/artifact.tar" \ | ||
--exclude=.git \ | ||
--exclude=.github \ | ||
. | ||
echo ::endgroup:: | ||
env: | ||
INPUT_PATH: ${{ inputs.path }} | ||
- uses: actions/[email protected] | ||
name: Upload GitHub Pages artifact | ||
with: | ||
name: github-pages | ||
# Path of the directory containing the static assets. | ||
path: ${{ github.workspace }}/dist/portfolio/** | ||
path: "$RUNNER_TEMP/artifact.tar" | ||
# Duration after which artifact will expire in days. | ||
retention-days: 1 | ||
deploy: | ||
|