Skip to content

Commit

Permalink
Merge pull request #6 from NJUPT-SAST/add-prebuild
Browse files Browse the repository at this point in the history
add: add prebuild action and correct error link in README
  • Loading branch information
Xunop committed Dec 26, 2023
2 parents 374ea79 + 54184f9 commit e5b1f7f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install mkdocs
run: pip install mkdocs-material

- name: Test
run: bash test.sh
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)

10 changes: 10 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

ORIGDIR=$PWD
git switch upstream/main
cd ..
git clone https://github.com/NJUPT-SAST/sast-wiki.git
cd sast-wiki
git switch main
cp -r $ORIGDIR docs/
mkdocs build

0 comments on commit e5b1f7f

Please sign in to comment.