Skip to content

Commit e448403

Browse files
committed
Issue:61 - [foundryup] Create foundry first release - foundrybook for parity
1 parent 7aae3fe commit e448403

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/deploy.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: deploy
2-
on: [push]
2+
on:
3+
- push
4+
- workflow_dispatch
35

46
jobs:
57
deploy:
68
runs-on: ubuntu-latest
79
permissions:
810
contents: read
11+
pages: write
12+
id-token: write
913
deployments: write
10-
name: Deploy to Cloudflare Pages
14+
name: Deploy to GH Pages
1115
steps:
1216
- name: Checkout
1317
uses: actions/checkout@v4
@@ -23,11 +27,13 @@ jobs:
2327
- name: Build book
2428
run: mdbook build
2529

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
2834
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

.github/workflows/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
steps:
1111
- uses: actions/add-to-project@main
1212
with:
13-
project-url: https://github.com/orgs/foundry-rs/projects/1
13+
project-url: https://github.com/orgs/paritytech/projects/1
1414
github-token: ${{ secrets.GH_PROJECTS_TOKEN }}

0 commit comments

Comments
 (0)