Skip to content

Commit 72ad55d

Browse files
committed
using different gh page publish action
1 parent 57f2ecb commit 72ad55d

File tree

71 files changed

+28
-12577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+28
-12577
lines changed

.github/workflows/gh-pages.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,43 @@ on:
99
pull_request:
1010

1111
jobs:
12-
deploy:
12+
build:
1313
runs-on: ubuntu-latest
1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
1616
cancel-in-progress: true
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

20-
- name: Setup mdBook
21-
uses: peaceiris/actions-mdbook@v1
22-
with:
23-
mdbook-version: '0.4.18'
20+
- name: Install mdBook
21+
run: |
22+
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
23+
rustup update
24+
cargo install --version ${MDBOOK_VERSION} mdbook mdbook-linkcheck
25+
26+
- name: Setup Pages
27+
id: pages
28+
uses: actions/configure-pages@v5
29+
30+
- name: Build with mdBook
31+
run: mdbook build docs
2432

2533
- run: cargo install mdbook-linkcheck
2634

2735
- run: mdbook build docs
2836

29-
- name: Deploy
30-
uses: peaceiris/actions-gh-pages@v3
31-
if: ${{ github.ref == 'refs/heads/main' }}
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
3239
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./docs/book
40+
path: ./docs/book
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

html/.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

html/404.html

Lines changed: 0 additions & 186 deletions
This file was deleted.

html/FontAwesome/css/font-awesome.css

Lines changed: 0 additions & 4 deletions
This file was deleted.
-162 KB
Binary file not shown.
-162 KB
Binary file not shown.

0 commit comments

Comments
 (0)