-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (46 loc) · 1.39 KB
/
github-pages.yml
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
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.11'
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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/[email protected]
with:
python-version: ${{ env.python_version }}
- name: Build translations
run: python po/build.py
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.5
- uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- 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@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site