Skip to content

Commit

Permalink
Test create artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoppier committed Jun 14, 2024
1 parent 18a4288 commit 9a2e101
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/website_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,31 @@ jobs:
- run: npm run build
working-directory: ./website

- name: Archive artifact
shell: sh
run: |
echo ::group::Archive artifact
tar \
--dereference --hard-dereference \
--directory "website/src" \
-cvf "$RUNNER_TEMP/artifact.tar" \
.
echo ::endgroup::
env:
INPUT_PATH: ${{ inputs.path }}

- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: 1
if-no-files-found: error

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
id: deployment
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/dist
path: ./website/dist
name: 'github-pages'

0 comments on commit 9a2e101

Please sign in to comment.