diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7ee1f1c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +on: pull_request +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Install mkdocs + run: pip install mkdocs-material + + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Test + run: | + ORIGDIR=$PWD + cd .. + git clone https://github.com/NJUPT-SAST/sast-wiki.git + cd sast-wiki + git switch main + [[ -d docs ]] && rm -rf docs + mv $ORIGDIR docs + mkdocs build diff --git a/README.md b/README.md index 415dfa2..41b6727 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,5 @@ - [南科手册](https://sustech.online/surroundings/) # 贡献 -如果你想贡献内容,请仔细阅读 [CONTRIBUTION.md](/CONTRIBUTION.html) +如果你想贡献内容,请仔细阅读 [CONTRIBUTION.md](/CONTRIBUTION.md) diff --git a/blog/posts/test-prebuild.md b/blog/posts/test-prebuild.md new file mode 100644 index 0000000..79fa8d8 --- /dev/null +++ b/blog/posts/test-prebuild.md @@ -0,0 +1,13 @@ +--- + titl: test prebuild + date: 2023-12-26 + (error)authors: + - error + - error + - error + categories: + - blog + tags: test prebuild +--- + +This is a test.