-
Notifications
You must be signed in to change notification settings - Fork 651
33 lines (30 loc) · 1004 Bytes
/
publish-main-docs.yml
File metadata and controls
33 lines (30 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Publish main branch docs to GitHub Pages
on:
push:
branches:
- main
jobs:
publish-to-gh-pages:
name: Publish docs to `staging` directory of `gh-pages` branch
permissions:
contents: write
uses: ./.github/workflows/publish-github-pages.yml
with:
build_script: yarn workspace @metamask/snaps-sdk build:docs
destination_dir: docs/staging
publish_dir: ./packages/snaps-sdk/docs
secrets:
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}
publish-schema-to-gh-pages:
name: Publish schema to `schema/staging` directory of `gh-pages` branch
needs:
- publish-to-gh-pages
permissions:
contents: write
uses: ./.github/workflows/publish-github-pages.yml
with:
build_script: yarn workspace @metamask/snaps-rpc-methods build:schema
destination_dir: schema/staging
publish_dir: ./packages/snaps-rpc-methods/schema
secrets:
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}