aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-25 12:37:11 +0800
committer简律纯 <i@jyunko.cn>2023-07-25 12:37:11 +0800
commitd304910159e6824dae201e4e4aeafa0ff7984292 (patch)
treed0849d123ba9b88fb7f19e827dcd28344bad5863 /.github
parentccbe69c9e072c4bf8364e23a461d224e150a421f (diff)
downloadTRPGNivis-d304910159e6824dae201e4e4aeafa0ff7984292.tar.gz
TRPGNivis-d304910159e6824dae201e4e4aeafa0ff7984292.zip
add docs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pages.yml25
1 files changed, 25 insertions, 0 deletions
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