InternalAllTheThings/.github/workflows/ci.yml

40 lines
989 B
YAML
Raw Normal View History

2023-02-08 14:05:52 +00:00
name: ci
on:
2023-02-08 14:10:45 +00:00
workflow_dispatch:
2023-02-08 14:05:52 +00:00
push:
branches:
- master
- main
2023-11-17 20:29:33 +00:00
2023-02-08 14:05:52 +00:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
2024-03-30 12:07:13 +00:00
- uses: actions/checkout@v4
2023-02-08 14:05:52 +00:00
with:
submodules: recursive
2024-03-30 12:07:13 +00:00
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2024-03-30 09:38:59 +00:00
- uses: actions/setup-python@v5
2023-02-08 14:05:52 +00:00
with:
python-version: 3.x
2024-03-30 12:07:13 +00:00
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
2023-02-08 14:05:52 +00:00
- run: pip install mkdocs-material
- run: pip install mkdocs-git-revision-date-localized-plugin
- run: pip install mkdocs-git-committers-plugin
2023-12-24 13:06:55 +00:00
- run: pip install mkdocs-material[imaging]
2024-03-30 12:07:13 +00:00
- run: mkdocs gh-deploy --force