Skip to content

Commit c338874

Browse files
committed
ci: Deploy pages with actions/deploy-pages
1 parent d234fd1 commit c338874

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,38 @@ on:
44
branches:
55
- main
66
workflow_dispatch:
7+
concurrency:
8+
group: "pages"
9+
cancel-in-progress: false
710
jobs:
8-
deploy:
11+
build:
912
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1015
steps:
1116
- uses: actions/checkout@v4
1217
- name: Set up Ruby
1318
uses: ruby/setup-ruby@v1
1419
with:
1520
ruby-version: 3.3
1621
bundler-cache: true
22+
- name: Setup Pages
23+
uses: actions/configure-pages@v5
1724
- name: Jekyll Build
1825
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

0 commit comments

Comments
 (0)