Skip to content

Commit f2e6afa

Browse files
authored
Update GitHub Actions workflow for Jekyll site
1 parent 5c5405a commit f2e6afa

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/pages.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and deploy Jekyll site to Pages
22

33
on:
44
push:
5-
branches: [ main ] # or your default branch
5+
branches: [ main ] # or your default branch
66
workflow_dispatch:
77

88
permissions:
@@ -20,6 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23+
# REQUIRED: configures the Pages deployment
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v5
26+
2327
- uses: ruby/setup-ruby@v1
2428
with:
2529
ruby-version: '3.3'
@@ -33,14 +37,13 @@ jobs:
3337
- name: Build with Jekyll
3438
uses: actions/jekyll-build-pages@v1
3539
with:
36-
# IMPORTANT: paths are relative to repo root
37-
source: ./jekyll-site
38-
destination: ./_site
40+
source: ./jekyll-site # your site lives here
41+
destination: ./_site # output for upload
3942

4043
- name: Upload artifact
4144
uses: actions/upload-pages-artifact@v3
4245
with:
43-
path: ./_site
46+
path: ./_site # artifact name defaults to github-pages
4447

4548
deploy:
4649
needs: build

0 commit comments

Comments
 (0)