1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00
x1c6-hackintosh/.github/workflows/documentation.yml

35 lines
883 B
YAML
Raw Normal View History

2022-03-02 17:48:59 -06:00
name: Build & Deploy MkDocs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
2022-04-20 02:48:01 -05:00
documentation:
name: Build documentation
2022-03-02 17:48:59 -06:00
runs-on: ubuntu-latest
steps:
2022-04-20 02:48:01 -05:00
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python runtime
uses: actions/setup-python@v2
2022-03-02 17:48:59 -06:00
with:
python-version: 3.x
2022-04-20 02:48:01 -05:00
2022-04-20 03:00:03 -05:00
- name: Install Python dependencies
run: |
pip install \
mkdocs-git-revision-date-localized-plugin>=1.0.1
2022-04-20 02:48:01 -05:00
- name: Install Insiders build
if: github.event.repository.fork == false
2022-04-20 02:35:30 -05:00
env:
2022-04-20 02:37:08 -05:00
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2022-04-20 02:48:01 -05:00
run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
- name: Deploy documentation
run: mkdocs gh-deploy --force