File tree Expand file tree Collapse file tree 1 file changed +11
-31
lines changed
Expand file tree Collapse file tree 1 file changed +11
-31
lines changed Original file line number Diff line number Diff line change 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
42on :
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"]
135permissions :
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-
239jobs :
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 }}
You can’t perform that action at this time.
0 commit comments