File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
workflow_dispatch :
7
+ concurrency :
8
+ group : " pages"
9
+ cancel-in-progress : false
7
10
jobs :
8
- deploy :
11
+ build :
9
12
runs-on : ubuntu-latest
13
+ permissions :
14
+ contents : read
10
15
steps :
11
16
- uses : actions/checkout@v4
12
17
- name : Set up Ruby
13
18
uses : ruby/setup-ruby@v1
14
19
with :
15
20
ruby-version : 3.3
16
21
bundler-cache : true
22
+ - name : Setup Pages
23
+ uses : actions/configure-pages@v5
17
24
- name : Jekyll Build
18
25
run : bundle exec jekyll build
19
- - name : Deploy
20
- uses : peaceiris/actions-gh-pages@v4
21
- with :
22
- personal_token : ${{ secrets.GITHUB_TOKEN }}
23
- publish_dir : ./_site
26
+ - name : Upload artifact
27
+ uses : actions/upload-pages-artifact@v3
28
+ deploy :
29
+ runs-on : ubuntu-latest
30
+ needs : build
31
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
32
+ permissions :
33
+ pages : write # to deploy to Pages
34
+ id-token : write # to verify the deployment originates from an appropriate source
35
+ environment :
36
+ name : github-pages
37
+ url : ${{ steps.deployment.outputs.page_url }}
38
+ steps :
39
+ - name : Deploy to GitHub Pages
40
+ id : deployment
41
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments