-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (52 loc) · 1.74 KB
/
github-pages.yml
File metadata and controls
57 lines (52 loc) · 1.74 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
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
env:
python_version: '3.13'
jobs:
github-pages:
runs-on: ubuntu-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Lint with Pre-commit
run: pipx run pre-commit run --all-files
- name: Install Linux Dependencies
run: >
sudo apt-get update -qq && sudo apt-get install -qq --no-install-recommends po4a
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ env.python_version }}
- name: Build translations
run: python po/build.py
- name: Set up Ruby
uses: ruby/setup-ruby@4eb9f110bac952a8b68ecf92e3b5c7a987594ba6 # v1.292.0
with:
ruby-version: 3.3.4
bundler-cache: true
- name: Build Pages
run: |
bundle install
bundle exec jekyll build
- name: Check Links
run: >
bundle exec htmlproofer
--disable-external true
--enforce-https false
--allow-missing-href true
--check-internal-hash false
--checks Links ./_site
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site