This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
Merge pull request #132 from Andre601/dependabot/pip/mkdocs-material-… #69
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: 'Deploy Site (Push)' | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'docs/**' | |
- 'mkdocs.yml' | |
- 'mkdocs-theme/**' | |
- 'requirements.txt' | |
branches: | |
- master | |
tags-ignore: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Create/Get Cache | |
uses: actions/cache@v3 | |
with: | |
key: ${{ github.ref }} | |
path: .cache | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
python -m pip install -r requirements.txt | |
- name: Set up Git | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "[email protected]" | |
- name: Deploy Files | |
run: mkdocs gh-deploy --force |