Update changelog #100
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
name: doc | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
# Use Ubuntu 20.04 because doxygen 1.8.13 from Ubuntu 18.04 is broken. | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Add Ubuntu mirrors | |
run: | | |
# Github Actions caching proxy is at times unreliable | |
# see https://github.com/actions/runner-images/issues/7048 | |
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt | |
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt | |
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list | |
- name: Create build environment | |
run: | | |
sudo apt update | |
sudo apt install doxygen | |
pip install mkdocs mkdocs-material mkdocstrings pymdown-extensions mike | |
cmake -E make_directory ${{runner.workspace}}/build | |
# Workaround https://github.com/actions/checkout/issues/13: | |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" | |
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" | |
- name: Build | |
working-directory: ${{runner.workspace}}/build | |
env: | |
KEY: ${{secrets.KEY}} | |
run: | | |
$GITHUB_WORKSPACE/support/mkdocs deploy dev | |
cd $GITHUB_WORKSPACE/build/fmt.dev | |
git push https://$KEY@github.com/fmtlib/fmt.dev.git |