Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test prebuild #17

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)

13 changes: 13 additions & 0 deletions blog/posts/test-prebuild.md
Original file line number Diff line number Diff line change
@@ -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.
Loading