Skip to content

Commit ed0ae2d

Browse files
authored
feat: add account-kit to docs during ci (#54)
* feat: add account-kit to docs during ci * refactor: move aa-sdk integration into composite action --------- Co-authored-by: dslovinsky <[email protected]>
1 parent 7ffcc1e commit ed0ae2d

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Add aa-sdk docs to fern"
2+
description: "Checks out aa-sdk repository with sparse checkout and copies docs to fern/docs/account-kit"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Sparse Checkout Repository
8+
uses: actions/checkout@v4
9+
with:
10+
repository: alchemyplatform/aa-sdk
11+
path: aa-sdk
12+
sparse-checkout: |
13+
docs/
14+
sparse-checkout-cone-mode: true
15+
16+
- name: Copy docs to workspace and insert into fern
17+
shell: bash
18+
run: |
19+
mkdir -p fern/docs/account-kit
20+
cp -r aa-sdk/docs/* fern/docs/account-kit
21+
fern/docs/account-kit/scripts/insert-docs.sh

.github/workflows/preview-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
1515

16+
- name: Add aa-sdk docs to fern
17+
uses: ./.github/actions/sparse-checkout-docs
18+
1619
- name: Set Build Comment to In Progress
1720
uses: actions/github-script@v7
1821
with:

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19+
- name: Add aa-sdk docs to fern
20+
uses: ./.github/actions/sparse-checkout-docs
21+
1922
- name: Publish Documentation
2023
uses: ./.github/actions/publish-fern
2124
id: publish

0 commit comments

Comments
 (0)