File tree Expand file tree Collapse file tree 2 files changed +360
-394
lines changed Expand file tree Collapse file tree 2 files changed +360
-394
lines changed Original file line number Diff line number Diff line change @@ -11,37 +11,39 @@ permissions:
11
11
12
12
# Allow only one concurrent deployment
13
13
concurrency :
14
- group : " pages "
14
+ group : " typedoc "
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
- " Generate TypeDoc " :
18
+ build :
19
+ name : " Generate TypeDoc"
19
20
runs-on : ubuntu-latest
20
21
steps :
21
22
- name : Checkout
22
23
uses : actions/checkout@v4
23
-
24
- - name : Setup Pages
25
- uses : actions/configure-pages@v4
26
24
27
25
- name : Install
28
26
uses : ./.github/composite-actions/install
29
27
30
28
- name : Generate Documentation
31
29
run : pnpm typedoc
32
-
33
- - name : Upload artifact
34
- uses : actions/upload-pages-artifact@v3
35
- with :
36
- path : ' ./typedoc/documentation.json'
37
30
38
- " Deploy TypeDoc " :
39
- environment :
40
- name : github-pages
41
- url : ${{ steps.deployment.outputs.page_url }}
42
- runs-on : ubuntu-latest
43
- needs : build
44
- steps :
45
- - name : Deploy to GitHub Pages
46
- id : deployment
47
- uses : actions/deploy-pages@v4
31
+ - name : Update Gist
32
+ uses : actions/github-script@v7
33
+ with :
34
+ github-token : ${{ secrets.GIST_TOKEN }}
35
+ script : |
36
+ const fs = require('fs');
37
+ const content = fs.readFileSync('./packages/thirdweb/typedoc/documentation.json', 'utf8');
38
+ const gistId = '678fe1f331a01270bb002fee660f285d';
39
+
40
+ await github.rest.gists.update({
41
+ gist_id: gistId,
42
+ files: {
43
+ 'data.json': {
44
+ content: content
45
+ }
46
+ }
47
+ });
48
+
49
+ console.log(`Permalink: https://gist.githubusercontent.com/raw/${gistId}/data.json`);
You can’t perform that action at this time.
0 commit comments