Skip to content

Commit f3343ee

Browse files
committed
Use Chirpy deploy workflow
1 parent 2f6b265 commit f3343ee

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: "Build and Deploy"
1+
name: Deploy Jekyll with Chirpy
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
workflow_dispatch:
87

98
permissions:
@@ -20,39 +19,35 @@ jobs:
2019
runs-on: ubuntu-latest
2120

2221
steps:
23-
- name: Checkout
22+
- name: Checkout code
2423
uses: actions/checkout@v4
2524
with:
26-
fetch-depth: 0
27-
28-
- name: Setup Pages
29-
id: pages
30-
uses: actions/configure-pages@v4
25+
submodules: true
3126

3227
- name: Setup Ruby
3328
uses: ruby/setup-ruby@v1
3429
with:
35-
ruby-version: 3.3
30+
ruby-version: 3.2
3631
bundler-cache: true
3732

38-
- name: Build site
39-
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
40-
env:
41-
JEKYLL_ENV: "production"
33+
- name: Install and Build with Jekyll
34+
run: |
35+
bundle install
36+
bundle exec jekyll build
4237
4338
- name: Upload site artifact
44-
uses: actions/upload-pages-artifact@v3
39+
uses: actions/upload-pages-artifact@v2
4540
with:
46-
path: "_site${{ steps.pages.outputs.base_path }}"
41+
path: _site
4742

4843
deploy:
44+
needs: build
45+
runs-on: ubuntu-latest
4946
environment:
5047
name: github-pages
5148
url: ${{ steps.deployment.outputs.page_url }}
52-
runs-on: ubuntu-latest
53-
needs: build
5449
steps:
5550
- name: Deploy to GitHub Pages
5651
id: deployment
57-
uses: actions/deploy-pages@v4
52+
uses: actions/deploy-pages@v3
5853

0 commit comments

Comments
 (0)