Skip to content

Commit c07d457

Browse files
committed
update github page runner
1 parent f9c1067 commit c07d457

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed
Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +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: ["master"]
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: ["master"]
135
permissions:
146
contents: read
157
pages: write
168
id-token: write
17-
18-
# Allow one concurrent deployment
19-
concurrency:
20-
group: "pages"
21-
cancel-in-progress: true
22-
239
jobs:
24-
# Build job
2510
build:
2611
runs-on: ubuntu-latest
2712
steps:
2813
- name: Checkout
29-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
3015
- name: Setup Pages
31-
uses: actions/configure-pages@v2
32-
- name: Build with Jekyll
16+
uses: actions/configure-pages@v5
17+
- name: Build
3318
uses: actions/jekyll-build-pages@v1
34-
with:
35-
source: ./
36-
destination: ./_site
3719
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v1
39-
40-
# Deployment job
20+
uses: actions/upload-pages-artifact@v3
4121
deploy:
42-
environment:
43-
name: github-pages
44-
url: ${{ steps.deployment.outputs.page_url }}
4522
runs-on: ubuntu-latest
4623
needs: build
4724
steps:
4825
- name: Deploy to GitHub Pages
4926
id: deployment
50-
uses: actions/deploy-pages@v1
27+
uses: actions/deploy-pages@v4
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)