[Feat] Prometheus metric export #243
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: Check homepage build | |
on: | |
pull_request: | |
paths: | |
- 'examples/**' | |
- 'docs/**' | |
- 'zeus/**' | |
- 'mkdocs.yml' | |
- 'docker/Dockerfile' | |
- '.github/workflows/check_homepage_build.yaml' | |
# Jobs initiated by previous pushes get cancelled by a new push. | |
concurrency: | |
group: ${{ github.ref }}-check-homepage-build | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.event.repository.fork == false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
cache: 'pip' | |
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- name: Install other homepage dependencies | |
run: pip install '.[docs]' | |
- name: Build homepage | |
run: mkdocs build --verbose --strict | |
env: | |
BUILD_SOCIAL_CARD: true |