Skip to content

Commit 06be12e

Browse files
authored
Modify GitHub Pages workflow for Jekyll deployment
Updated workflow to build and deploy a Jekyll site to GitHub Pages.
1 parent caf60b4 commit 06be12e

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/static.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy GitHub Pages
33

44
on:
55
# Runs on pushes targeting the default branch
@@ -22,22 +22,30 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
# Single deploy job since we're just deploying
26-
deploy:
27-
environment:
28-
name: github-pages
29-
url: ${{ steps.deployment.outputs.page_url }}
25+
# Build job
26+
build:
3027
runs-on: ubuntu-latest
3128
steps:
3229
- name: Checkout
3330
uses: actions/checkout@v4
3431
- name: Setup Pages
3532
uses: actions/configure-pages@v5
33+
- name: Build with Jekyll
34+
uses: actions/jekyll-build-pages@v1
35+
with:
36+
source: ./
37+
destination: ./_site
3638
- name: Upload artifact
3739
uses: actions/upload-pages-artifact@v3
38-
with:
39-
# Upload entire repository
40-
path: '.'
40+
41+
# Deployment job
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
4149
- name: Deploy to GitHub Pages
4250
id: deployment
4351
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)