Skip to content

Workflow file for this run

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/setup-python@v5.1.0
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