Skip to content

sudo

sudo #11

Workflow file for this run

name: ci
on:
push:
branches: [ "main" ]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: sudo apt install libcairo2
- run: pip install -r requirements.txt
- run: mkdocs build
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: site # The branch name where you want to push the assets
FOLDER: site # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "Build: ({sha}) {msg}" # The commit message
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}