Skip to content

Commit fbb351d

Browse files
committed
Github Action: Use latest actions/build-jekyll-for-github-pages config
Just use example YAML from: https://github.com/marketplace/actions/build-jekyll-for-github-pages Signed-off-by: Gris Ge <fge@redhat.com>
1 parent 152d74b commit fbb351d

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed
Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,30 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2-
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3-
1+
name: Build Jekyll site
42
on:
5-
# Runs on pushes targeting the default branch
6-
push:
7-
branches: ["base"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
11-
12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
3+
push:
4+
branches: ["main"]
135
permissions:
146
contents: read
157
pages: write
168
id-token: write
17-
18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20-
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
23-
249
jobs:
25-
# Build job
2610
build:
2711
runs-on: ubuntu-latest
2812
steps:
2913
- name: Checkout
3014
uses: actions/checkout@v4
3115
- name: Setup Pages
3216
uses: actions/configure-pages@v5
33-
- name: Build with Jekyll
17+
- name: Build
3418
uses: actions/jekyll-build-pages@v1
35-
with:
36-
source: ./
37-
destination: ./_site
3819
- name: Upload artifact
3920
uses: actions/upload-pages-artifact@v3
40-
41-
# Deployment job
4221
deploy:
43-
environment:
44-
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
4622
runs-on: ubuntu-latest
4723
needs: build
4824
steps:
4925
- name: Deploy to GitHub Pages
5026
id: deployment
51-
uses: actions/deploy-pages@v3
27+
uses: actions/deploy-pages@v4
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)