Skip to content

Commit a5fa59d

Browse files
committed
try github pages again
1 parent e6dbcbd commit a5fa59d

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/pages.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,25 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [ "**" ]
6-
pull_request:
7-
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
819

920
jobs:
1021
deploy:
22+
environment:
23+
name: github-pages
24+
url: ${{ steps.deployment.outputs.page_url }}
1125
runs-on: ubuntu-latest
1226
steps:
1327
- name: Install dependencies
@@ -16,13 +30,17 @@ jobs:
1630
sudo apt install -y llvm-dev libclang-dev clang
1731
- name: Install rust
1832
uses: moonrepo/setup-rust@v1
19-
- name: Checkout code
33+
- name: Checkout
2034
uses: actions/checkout@v4
21-
- name: Run unit tests
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v5
37+
- name: Create documents
2238
run: |
2339
cargo doc --no-deps
24-
- name: Deploy to github pages
25-
uses: peaceiris/actions-gh-pages@v3
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
2642
with:
27-
github_token: ${{ secrets.github_token }}
28-
publish_dir: ./target/doc
43+
path: './target/doc'
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)