Skip to content

Commit

Permalink
fix(deploy): ensure large sites can be deployed (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Jan 7, 2025
1 parent cabda61 commit 4b5530e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/jekyll-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
tar -xf ${{ inputs.extract_archive }} -C .
;;
*.zip)
unzip ${{ inputs.extract_archive }} -d .
7z x ${{ inputs.extract_archive }} -o.
;;
*)
echo "Unsupported archive format"
Expand Down Expand Up @@ -206,11 +206,16 @@ jobs:
bundle exec jekyll build --future --config ${config_files}
- name: Prepare Artifacts # uploading artifacts may fail if not zipped due to very large quantity of files
shell: bash
run: |
7z a _site.zip ./_site/*
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: site
path: _site
path: _site.zip
if-no-files-found: error
include-hidden-files: true
retention-days: 1
Expand Down Expand Up @@ -244,8 +249,11 @@ jobs:
name: site
path: gh-pages

- name: no-jekyll
- name: Setup gh-pages
working-directory: gh-pages
run: |
7z x _site.zip -o.
rm _site.zip
touch gh-pages/.nojekyll
- name: Deploy to gh-pages
Expand Down

0 comments on commit 4b5530e

Please sign in to comment.