Simplify Docker setup and update documentation (#16) #50
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: ci | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- id: date | |
run: echo "::set-output name=week::$(date --utc '+%V')" | |
- uses: actions/cache@v3 | |
with: | |
key: mkdocs-material-${{ steps.date.outputs.week }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- run: pip install -r requirements.txt | |
- run: mkdocs gh-deploy --force |