-
Notifications
You must be signed in to change notification settings - Fork 182
61 lines (56 loc) · 1.54 KB
/
Copy pathpages.yml
File metadata and controls
61 lines (56 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Build and deploy the docs/ site to GitHub Pages using the repo's own
# Jekyll 4 Gemfile, so the published site matches a local `jekyll serve`.
# (GitHub's default Pages build uses the github-pages gem / Jekyll 3.9.)
name: Deploy docs to Pages
on:
push:
branches: [master]
paths:
- "docs/**"
- ".github/workflows/pages.yml"
workflow_dispatch:
# Allow GITHUB_TOKEN to deploy to Pages.
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment; don't cancel an in-progress run.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- uses: actions/checkout@v7
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
working-directory: docs
- name: Configure Pages
id: pages
uses: actions/configure-pages@v6
- name: Build site
env:
JEKYLL_ENV: production
PAGES_BASE_PATH: ${{ steps.pages.outputs.base_path }}
run: bundle exec jekyll build --baseurl "$PAGES_BASE_PATH"
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs/_site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5