Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
E1PsyCongroo committed Oct 13, 2024
1 parent e452791 commit 12a865e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 104 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
102 changes: 0 additions & 102 deletions Tools/ghpages-mini-fileserver/Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 12a865e

Please sign in to comment.