File tree 2 files changed +16
-10
lines changed
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : deploy
2
- on : [push]
2
+ on :
3
+ - push
4
+ - workflow_dispatch
3
5
4
6
jobs :
5
7
deploy :
6
8
runs-on : ubuntu-latest
7
9
permissions :
8
10
contents : read
11
+ pages : write
12
+ id-token : write
9
13
deployments : write
10
- name : Deploy to Cloudflare Pages
14
+ name : Deploy to GH Pages
11
15
steps :
12
16
- name : Checkout
13
17
uses : actions/checkout@v4
@@ -23,11 +27,13 @@ jobs:
23
27
- name : Build book
24
28
run : mdbook build
25
29
26
- - name : Publish
27
- uses :
cloudflare/[email protected]
30
+ - name : Setup Pages
31
+ uses : actions/configure-pages@v4
32
+ - name : Upload artifact
33
+ uses : actions/upload-pages-artifact@v3
28
34
with :
29
- apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
30
- accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
31
- projectName : foundry-book
32
- directory : book
33
- gitHubToken : ${{ secrets.GITHUB_TOKEN }}
35
+ # Upload entire repository
36
+ path : ' book '
37
+ - name : Deploy to GitHub Pages
38
+ id : deployment
39
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 10
10
steps :
11
11
- uses : actions/add-to-project@main
12
12
with :
13
- project-url : https://github.com/orgs/foundry-rs /projects/1
13
+ project-url : https://github.com/orgs/paritytech /projects/1
14
14
github-token : ${{ secrets.GH_PROJECTS_TOKEN }}
You can’t perform that action at this time.
0 commit comments