From d304910159e6824dae201e4e4aeafa0ff7984292 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 25 Jul 2023 12:37:11 +0800 Subject: add docs --- .github/workflows/pages.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pages.yml (limited to '.github') diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..67b129b --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,25 @@ +name: ci +on: + push: + branches: + - master + - 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: pip install mkdocs-material + - run: mkdocs gh-deploy --force -- cgit v1.2.3-70-g09d2