Skip to content

Commit 721ec46

Browse files
authored
Deploy pages with actions/deploy-pages (#154)
* ci: Rename workflow file / Use Ruby 3.3 * Add `workflow_dispatch` * ci: Deploy pages with actions/deploy-pages
1 parent 0e1740b commit 721ec46

File tree

2 files changed

+41
-22
lines changed

2 files changed

+41
-22
lines changed

.github/workflows/deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
concurrency:
8+
group: "pages"
9+
cancel-in-progress: false
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 3.3
21+
bundler-cache: true
22+
- name: Setup Pages
23+
uses: actions/configure-pages@v5
24+
- name: Jekyll Build
25+
run: bundle exec jekyll build
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

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)