Skip to content

Commit 2f539dd

Browse files
committed
fix: Correct job names in typedoc workflow to resolve deployment issues
1 parent 4a016e7 commit 2f539dd

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/typedoc.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
"Generate TypeDoc":
18+
build:
19+
name: "Generate TypeDoc"
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Checkout
@@ -29,19 +30,22 @@ jobs:
2930

3031
- name: Generate Documentation
3132
run: pnpm typedoc
32-
33-
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@v3
35-
with:
36-
path: './typedoc/documentation.json'
3733

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
34+
- name: Update Gist
35+
uses: actions/github-script@v7
36+
with:
37+
script: |
38+
const fs = require('fs');
39+
const content = fs.readFileSync('./typedoc/documentation.json', 'utf8');
40+
const gistId = 'your-gist-id';
41+
42+
await github.rest.gists.update({
43+
gist_id: gistId,
44+
files: {
45+
'data.json': {
46+
content: content
47+
}
48+
}
49+
});
50+
51+
console.log(`Permalink: https://gist.githubusercontent.com/raw/${gistId}/data.json`);

0 commit comments

Comments
 (0)