_config.yml cosmetics #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and publish the µOS++ web site. | |
# https://micro-os-plus.github.io/ | |
# https://micro-os-plus.github.io/web-preview/ | |
# https://github.com/micro-os-plus/web-jekyll/actions/workflows/publish-github-pages.yml | |
name: GitHub Pages | |
on: | |
push: | |
branches: [ master, develop ] | |
pull_request: | |
branches: [ master, develop ] | |
workflow_dispatch: | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs | |
# Allow one concurrent deployment | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: Build the Jekyll & Doxygen pages | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
runs-on: ubuntu-22.04 | |
env: | |
GITHUB_DEST_REPO: "micro-os-plus/micro-os-plus.github.io" | |
GITHUB_PREVIEW_REPO: "micro-os-plus/web-preview" | |
GIT_COMMIT_USER_EMAIL: "ilg@livius.net" | |
GIT_COMMIT_USER_NAME: "GitHub Actions" | |
NOKOGIRI_USE_SYSTEM_LIBRARIES: true | |
steps: | |
- name: Checkout | |
# https://github.com/actions/checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 3 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
# Version range or exact version of a Ruby version to use, | |
# using semvers version range syntax. | |
# https://www.ruby-lang.org/en/downloads/releases/ | |
ruby-version: '3.2' | |
- name: Install bundler | |
run: | | |
sudo apt-get install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev libxslt-dev pkg-config libffi-dev | |
# https://bundler.io | |
gem install bundler:2.4 | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
ls -l vendor/bundle | |
bundle exec htmlproofer --version | |
- name: Install Doxygen | |
# https://www.doxygen.nl/download.html | |
env: | |
DOXYGEN_VERSION: "1.9.7" | |
run: | | |
curl https://www.doxygen.nl/files/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz --output doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz | |
tar xf doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz | |
ls -l doxygen-$DOXYGEN_VERSION | |
mkdir -pv .local/bin | |
ln -sv $(pwd)/doxygen-$DOXYGEN_VERSION/bin/doxygen .local/bin/doxygen | |
ls -l | |
- name: Use Node.js | |
# https://github.com/actions/setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
# For the build helper and the Doxygen theme. | |
run: | | |
npm install --global xpm@latest | |
xpm install | |
- name: Show environment | |
run: | | |
pwd | |
env | sort | |
- name: Run script to build site | |
env: | |
GITHUB_TOKEN: ${{ secrets.ILG_TOKEN }} | |
run: bash scripts/ga-jekyll.sh | |