mirror of
https://github.com/fmtlib/fmt.git
synced 2026-06-15 08:26:13 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1af3b93b68...df4cb1c069)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
name: doc
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
- 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 --require-hashes -r support/doc-requirements.txt
|
|
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
|
|
run: $GITHUB_WORKSPACE/support/mkdocs deploy dev
|
|
|
|
- name: Deploy
|
|
env:
|
|
KEY: "${{secrets.KEY}}"
|
|
if: env.KEY != '' && github.ref == 'refs/heads/main'
|
|
working-directory: ${{runner.workspace}}/fmt/build/fmt.dev
|
|
run: git push https://$KEY@github.com/fmtlib/fmt.dev.git
|