File tree 1 file changed +20
-22
lines changed
1 file changed +20
-22
lines changed Original file line number Diff line number Diff line change @@ -15,33 +15,31 @@ concurrency:
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
- - name : Checkout
22
- uses : actions/checkout@v4
23
-
24
- - name : Setup Pages
25
- uses : actions/configure-pages@v4
26
-
27
22
- name : Install
28
23
uses : ./.github/composite-actions/install
29
24
30
25
- name : Generate Documentation
31
26
run : pnpm typedoc
32
-
33
- - name : Upload artifact
34
- uses : actions/upload-pages-artifact@v3
35
- with :
36
- path : ' ./typedoc/documentation.json'
37
27
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
28
+ - name : Update Gist
29
+ uses : actions/github-script@v7
30
+ with :
31
+ script : |
32
+ const fs = require('fs');
33
+ const content = fs.readFileSync('./typedoc/documentation.json', 'utf8');
34
+ const gistId = 'your-gist-id';
35
+
36
+ await github.rest.gists.update({
37
+ gist_id: gistId,
38
+ files: {
39
+ 'data.json': {
40
+ content: content
41
+ }
42
+ }
43
+ });
44
+
45
+ console.log(`Permalink : https://gist.githubusercontent.com/raw/${gistId}/data.json`);
You can’t perform that action at this time.
0 commit comments