From 12a865ea41b5fafb78a38a444564cd60466a2a9c Mon Sep 17 00:00:00 2001 From: focused_xy Date: Sun, 13 Oct 2024 14:50:11 +0800 Subject: [PATCH] fix: github actions --- .github/workflows/static.yml | 3 +- Tools/ghpages-mini-fileserver/Gemfile.lock | 102 --------------------- site.sh | 2 +- 3 files changed, 3 insertions(+), 104 deletions(-) delete mode 100644 Tools/ghpages-mini-fileserver/Gemfile.lock diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index fe8ec8e..9c7345f 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -31,11 +31,12 @@ jobs: lfs: true submodules: true - name: Setup Ruby - uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 + uses: ruby/setup-ruby@v1 # v1.127.0 with: ruby-version: '3.1' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems + working-directory: ${{github.workspace}}/Tools/ghpages-mini-fileserver - name: Setup Pages id: pages uses: actions/configure-pages@v5 diff --git a/Tools/ghpages-mini-fileserver/Gemfile.lock b/Tools/ghpages-mini-fileserver/Gemfile.lock deleted file mode 100644 index b45f599..0000000 --- a/Tools/ghpages-mini-fileserver/Gemfile.lock +++ /dev/null @@ -1,102 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - addressable (2.8.7) - public_suffix (>= 2.0.2, < 7.0) - colorator (1.1.0) - concurrent-ruby (1.3.4) - em-websocket (0.5.3) - eventmachine (>= 0.12.9) - http_parser.rb - eventmachine (1.2.7) - ffi (1.17.0) - ffi (1.17.0-aarch64-linux-gnu) - ffi (1.17.0-aarch64-linux-musl) - ffi (1.17.0-arm-linux-gnu) - ffi (1.17.0-arm-linux-musl) - ffi (1.17.0-arm64-darwin) - ffi (1.17.0-x86-linux-gnu) - ffi (1.17.0-x86-linux-musl) - ffi (1.17.0-x86_64-darwin) - ffi (1.17.0-x86_64-linux-gnu) - ffi (1.17.0-x86_64-linux-musl) - forwardable-extended (2.6.0) - http_parser.rb (0.8.0) - i18n (1.14.6) - concurrent-ruby (~> 1.0) - jekyll (3.9.5) - addressable (~> 2.4) - colorator (~> 1.0) - em-websocket (~> 0.5) - i18n (>= 0.7, < 2) - jekyll-sass-converter (~> 1.0) - jekyll-watch (~> 2.0) - kramdown (>= 1.17, < 3) - liquid (~> 4.0) - mercenary (~> 0.3.3) - pathutil (~> 0.9) - rouge (>= 1.7, < 4) - safe_yaml (~> 1.0) - jekyll-default-layout (0.1.5) - jekyll (>= 3.0, < 5.0) - jekyll-file-size (0.0.7) - jekyll-optional-front-matter (0.3.2) - jekyll (>= 3.0, < 5.0) - jekyll-readme-index (0.3.0) - jekyll (>= 3.0, < 5.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-seo-tag (2.8.0) - jekyll (>= 3.8, < 5.0) - jekyll-watch (2.2.1) - listen (~> 3.0) - kramdown (2.4.0) - rexml - kramdown-parser-gfm (1.1.0) - kramdown (~> 2.0) - liquid (4.0.4) - listen (3.9.0) - rb-fsevent (~> 0.10, >= 0.10.3) - rb-inotify (~> 0.9, >= 0.9.10) - mercenary (0.3.6) - pathutil (0.16.2) - forwardable-extended (>= 2.6) - public_suffix (6.0.1) - rb-fsevent (0.11.2) - rb-inotify (0.11.1) - ffi (~> 1.0) - rexml (3.3.8) - rouge (3.30.0) - safe_yaml (1.0.5) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - webrick (1.8.2) - -PLATFORMS - aarch64-linux-gnu - aarch64-linux-musl - arm-linux-gnu - arm-linux-musl - arm64-darwin - ruby - x86-linux-gnu - x86-linux-musl - x86_64-darwin - x86_64-linux-gnu - x86_64-linux-musl - -DEPENDENCIES - jekyll (~> 3.9.2) - jekyll-default-layout (~> 0.1.4) - jekyll-file-size (~> 0.0.7) - jekyll-optional-front-matter (~> 0.3.2) - jekyll-readme-index (~> 0.3.0) - jekyll-seo-tag (~> 2.8) - kramdown-parser-gfm (~> 1.1) - webrick - -BUNDLED WITH - 2.5.21 diff --git a/site.sh b/site.sh index ad561c7..1443a94 100755 --- a/site.sh +++ b/site.sh @@ -9,5 +9,5 @@ CODE_DIR="$WORK_DIR/Others/Codes" JEKLLY_TOOL_DIR="$WORK_DIR/Tools/ghpages-mini-fileserver" cp -r "$CODE_DIR" "$JEKLLY_TOOL_DIR/resources" bash "$JEKLLY_TOOL_DIR/prenodes.sh" -cd "$JEKLLY_TOOL_DIR" && bundle install && bundle exec jekyll build --baseurl "$1" +cd "$JEKLLY_TOOL_DIR" && bundle exec jekyll build --baseurl "$1" cp -r "$JEKLLY_TOOL_DIR/_site" "$SITE_DIR"