Skip to content

Commit

Permalink
Merge pull request #220 from ianjauslin-rutgers/main
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKontorovich authored Feb 1, 2025
2 parents 6f9fb1f + e30c13a commit 45a9528
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,44 @@ jobs:
key: Blueprint-cache
continue-on-error: true

- name: Upload docs & blueprint artifact
uses: actions/upload-pages-artifact@v3
## cannot use upload-pages-artifact@v3 twice (it is used for the blueprint above)
## it fails because two identically named artifacts are uploaded
## (for github pages deployment to work, the artifact must be named 'github-pages')
## This could be fixed using upload-artifact's 'overwrite:true' option, but it is not implemented on upload-pages-artifact
## Copied the archive/upload action from upload-pages-artifact below.
## This should be replaced with
## - name: Upload docs & blueprint artifact
## uses: actions/upload-pages-artifact@v3
## with:
## path: docs
## name: github-pages
## overwrite: true
## when this is supported
- name: Archive artifact
shell: sh
run: |
echo ::group::Archive artifact
tar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
--exclude=".[^/]*" \
.
echo ::endgroup::
env:
INPUT_PATH: docs

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

- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 45a9528

Please sign in to comment.