Repository navigation
60 lines (55 loc) · 1.7 KB
/
Copy pathpages.yml
File metadata and controls
60 lines (55 loc) · 1.7 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
name: GitHub Pages
# Pushes that touch the site redeploy it, and a release rebuilds it so the
# header shows the new tag. Docs for a feature that is on main but not
# released yet go live with that push; docs/_data/unreleased.yml tags them
# "unreleased" until the release (#213).
on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/pages.yml"
- ".github/scripts/check-links.py"
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
- name: Build with Jekyll
uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1
with:
source: ./docs
destination: ./_site
# A broken internal link or #anchor fails the build instead of shipping.
- name: Check internal links
run: python3 .github/scripts/check-links.py _site /subenum
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: ./_site
deploy:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5