Skip to content

Commit 4f1b55f

Browse files
authored
Update pages.yml
1 parent e1f97b1 commit 4f1b55f

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/pages.yml

+18-10
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 Jekyll with GitHub Pages dependencies preinstalled
33

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

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

0 commit comments

Comments
 (0)