Skip to content

Commit 84c909d

Browse files
committed
Update workflow
1 parent dc90e20 commit 84c909d

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: "Build and Deploy"
22
on:
33
push:
44
branches:
5-
- main
6-
- master
5+
- gh-pages
76
paths-ignore:
87
- .gitignore
98
- README.md
@@ -29,37 +28,30 @@ jobs:
2928
steps:
3029
- name: Checkout
3130
uses: actions/checkout@v4
32-
with:
33-
fetch-depth: 0
34-
# submodules: true
35-
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
36-
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
37-
38-
- name: Setup Pages
39-
id: pages
40-
uses: actions/configure-pages@v4
4131

4232
- name: Setup Ruby
4333
uses: ruby/setup-ruby@v1
4434
with:
4535
ruby-version: 3.3
4636
bundler-cache: true
4737

38+
- name: Setup Pages
39+
id: pages
40+
uses: actions/configure-pages@v5
41+
4842
- name: Build site
49-
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
43+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
5044
env:
51-
JEKYLL_ENV: "production"
45+
JEKYLL_ENV: production
5246

5347
- name: Test site
5448
run: |
5549
bundle exec htmlproofer _site \
5650
\-\-disable-external \
5751
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5852
59-
- name: Upload site artifact
53+
- name: Upload artifact
6054
uses: actions/upload-pages-artifact@v3
61-
with:
62-
path: "_site${{ steps.pages.outputs.base_path }}"
6355

6456
deploy:
6557
environment:

0 commit comments

Comments
 (0)