Skip to content

Commit a49c120

Browse files
committed
next try to fix jekyll-toc problem
1 parent b69de3f commit a49c120

1 file changed

Lines changed: 21 additions & 10 deletions

File tree

.github/workflows/jekyll.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,29 @@ jobs:
2727
build:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- name: Checkout
31-
uses: actions/checkout@v4
32-
- name: Setup Pages
33-
uses: actions/configure-pages@v5
34-
- name: Build with Jekyll
35-
uses: actions/jekyll-build-pages@v1
30+
- name: Checkout repository
31+
uses: actions/checkout@v3
32+
33+
- name: Setup Ruby
34+
uses: ruby/setup-ruby@v1
3635
with:
37-
source: ./
38-
destination: ./_site
39-
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v3
36+
ruby-version: '3.1'
37+
bundler-cache: true
38+
39+
- name: Install dependencies
40+
run: bundle install
41+
42+
- name: Build site
43+
run: bundle exec jekyll build
4144

45+
- name: Deploy
46+
run: |
47+
git config --global user.name "GitHub Actions"
48+
git config --global user.email "actions@github.com"
49+
git add .
50+
git commit -m "Deploy site"
51+
git push
52+
4253
# Deployment job
4354
deploy:
4455
environment:

0 commit comments

Comments
 (0)