Skip to content

Commit f1cbad4

Browse files
committed
Update jekyll-gh-pages.yml
1 parent a3191aa commit f1cbad4

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,31 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
# Build job
26-
build:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
2730
runs-on: ubuntu-latest
2831
steps:
2932
- name: Checkout
3033
uses: actions/checkout@v4
34+
- name: Set up Node
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: lts/*
38+
cache: 'npm'
39+
- name: Install dependencies
40+
run: npm ci
41+
- name: Build
42+
run: npm run build
3143
- name: Setup Pages
3244
uses: actions/configure-pages@v5
33-
- name: Build with Jekyll
34-
uses: actions/jekyll-build-pages@v1
35-
with:
36-
source: ./demo
37-
destination: ./_site
3845
- name: Upload artifact
3946
uses: actions/upload-pages-artifact@v3
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:
47+
with:
48+
# Upload dist folder
49+
path: './demo/dist'
4950
- name: Deploy to GitHub Pages
5051
id: deployment
5152
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)