HardwareAllTheThings/.github/workflows/ci.yml

40 lines
989 B
YAML
Raw Permalink Normal View History

2022-09-27 09:47:19 +00:00
name: ci
on:
2024-03-31 13:13:54 +00:00
workflow_dispatch:
2022-09-27 09:47:19 +00:00
push:
branches:
- master
- main
2024-03-31 13:13:54 +00:00
2022-09-27 09:47:19 +00:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
2024-03-31 13:13:54 +00:00
- uses: actions/checkout@v4
2022-09-27 09:47:19 +00:00
with:
submodules: recursive
2024-03-31 13:13:54 +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
2022-09-27 09:47:19 +00:00
2024-03-31 13:13:54 +00:00
- uses: actions/setup-python@v5
2022-09-27 09:47:19 +00:00
with:
python-version: 3.x
2024-03-31 13:13:54 +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-
2022-09-27 09:47:19 +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 11:39:27 +00:00
- run: pip install mkdocs-material[imaging]
2022-09-27 09:47:19 +00:00
2024-03-31 13:13:54 +00:00
- run: mkdocs gh-deploy --force