From adeda9fdd7f8293b05e984c1dd626bb9c75bca6d Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:45:44 -0500 Subject: [PATCH] fix(deploy): ensure large sites can be deployed --- .github/workflows/jekyll-build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jekyll-build.yml b/.github/workflows/jekyll-build.yml index 792bdd81..2315e3be 100644 --- a/.github/workflows/jekyll-build.yml +++ b/.github/workflows/jekyll-build.yml @@ -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" @@ -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 @@ -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