aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-27 13:59:52 +0800
committer简律纯 <i@jyunko.cn>2023-07-27 13:59:52 +0800
commit913b5eaad25b9ba1cf0ad8d9b25633ec454c74e5 (patch)
tree78728f9ba69a225ec4fae39019dc3f30e246f545 /.github
parent610e826c7848db4f3b0b22ee23e4a2543723594b (diff)
downloadinfini-913b5eaad25b9ba1cf0ad8d9b25633ec454c74e5.tar.gz
infini-913b5eaad25b9ba1cf0ad8d9b25633ec454c74e5.zip
first push
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pages.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
new file mode 100644
index 00000000..eaf6a066
--- /dev/null
+++ b/.github/workflows/pages.yml
@@ -0,0 +1,27 @@
+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: |
+ cd docs
+ pip install -r requirements.txt
+ mkdocs gh-deploy --force