mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +08:00
Use windows to build documents
This commit is contained in:
6
.github/workflows/github-pages.yml
vendored
6
.github/workflows/github-pages.yml
vendored
@@ -36,7 +36,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
@@ -52,13 +52,13 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- name: Install Nightly Rust
|
- name: Install Nightly Rust
|
||||||
run: |
|
run: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
|
curl.exe "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" -o "rustup-init.exe" && ./rustup-init.exe --default-toolchain nightly -y && rm rustup-init.exe
|
||||||
- name: Document
|
- name: Document
|
||||||
run: |
|
run: |
|
||||||
cargo doc --features unstable --bins -vv || exit 1
|
cargo doc --features unstable --bins -vv || exit 1
|
||||||
- name: Add index files
|
- name: Add index files
|
||||||
run: |
|
run: |
|
||||||
echo '<!DOCTYPE HTML><html><head><script>window.location.href="msg_tool/"</script></head><body><a href="msg_tool/">Content Moved</a></body></html>' > target/doc/index.html
|
echo '<!DOCTYPE HTML><html><head><script>window.location.href="msg_tool/"</script></head><body><a href="msg_tool/">Content Moved</a></body></html>' | Out-File -Encoding utf8 target/doc/index.html
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
- name: Upload documents
|
- name: Upload documents
|
||||||
|
|||||||
Reference in New Issue
Block a user