Skip to content

Commit

Permalink
add: add prebuild action and correct error link in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunop committed Dec 27, 2023
1 parent 374ea79 commit 7cdbc65
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
- [南科手册](https://sustech.online/surroundings/)

# 贡献
如果你想贡献内容,请仔细阅读 [CONTRIBUTION.md](/CONTRIBUTION.html)
如果你想贡献内容,请仔细阅读 [CONTRIBUTION.md](/CONTRIBUTION.md)

0 comments on commit 7cdbc65

Please sign in to comment.