Skip to content

Commit

Permalink
Trying from example
Browse files Browse the repository at this point in the history
  • Loading branch information
AbsentSemicolon authored Sep 2, 2024
1 parent b748ae7 commit 75fb1d4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 75fb1d4

Please sign in to comment.