Skip to content

Commit 0ad4ffe

Browse files
Update jekyll-gh-pages.yml
1 parent b249efd commit 0ad4ffe

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.github/workflows/jekyll-gh-pages.yml

+22-11
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v4
3131

3232
- name: Set up Python
33-
uses: actions/setup-python@v4
33+
uses: actions/setup-python@v2
3434
with:
3535
python-version: '3.x'
3636

@@ -51,14 +51,15 @@ jobs:
5151
with:
5252
ruby-version: '3.x'
5353

54-
- name: Install dependencies
55-
run: |
56-
gem install bundler
57-
bundle install
54+
- name: Install Bundler
55+
run: gem install bundler
56+
57+
- name: Install dependencies with Bundler
58+
run: bundle install
59+
working-directory: ${{ github.workspace }}
5860

5961
- name: Build with Jekyll
60-
run: |
61-
bundle exec jekyll build
62+
run: bundle exec jekyll build
6263
env:
6364
JEKYLL_ENV: production
6465

@@ -67,18 +68,28 @@ jobs:
6768
cp -r ./examples_html/* ./_site/examples/
6869
6970
- name: Upload artifact
70-
uses: actions/upload-pages-artifact@v3
71+
uses: actions/upload-artifact@v2
7172
with:
73+
name: jekyll-site
7274
path: ./_site
7375

7476
# Deployment job
7577
deploy:
7678
environment:
7779
name: github-pages
78-
url: ${{ steps.deployment.outputs.page_url }}
80+
url: ${{ steps.deployment.outputs.artifact_url }}
7981
runs-on: ubuntu-latest
8082
needs: build
8183
steps:
84+
- name: Download artifact
85+
uses: actions/download-artifact@v2
86+
with:
87+
name: jekyll-site
88+
path: ./site
89+
8290
- name: Deploy to GitHub Pages
83-
id: deployment
84-
uses: actions/deploy-pages@v4
91+
uses: peaceiris/actions-gh-pages@v3
92+
with:
93+
github_token: ${{ secrets.GITHUB_TOKEN }}
94+
publish_dir: ./site
95+
force_orphan: true

0 commit comments

Comments
 (0)