Skip to content

Commit

Permalink
fix: github pages hosted docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Jun 6, 2024
1 parent 124cde7 commit ffc56a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- name: Cache
uses: Swatinem/rust-cache@v2

- name: Clean docs dir
run: rm -rf docs
- name: Clean docs-gh dir
run: rm -rf docs-gh
shell: bash

- name: Clean Rust docs dir
Expand All @@ -33,14 +33,14 @@ jobs:
run: cargo doc --manifest-path ./Cargo.toml --all-features --no-deps

- name: Move Rust docs
run: mkdir -p docs && mv target/doc/* docs/.
run: mkdir -p docs-gh && mv target/doc/* docs-gh/.
shell: bash

- name: Configure root page
run: echo '<meta http-equiv="refresh" content="0; url=wave">' > docs/index.html
run: echo '<meta http-equiv="refresh" content="0; url=wave">' > docs-gh/index.html

- name: Deploy docs
- name: Deploy docs-gh
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_dir: ./docs-gh

0 comments on commit ffc56a8

Please sign in to comment.