Skip to content

Commit 47cdf03

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

File tree

2 files changed

+359
-394
lines changed

2 files changed

+359
-394
lines changed

.github/workflows/typedoc.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,38 @@ permissions:
1111

1212
# Allow only one concurrent deployment
1313
concurrency:
14-
group: "pages"
14+
group: "typedoc"
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
2223
uses: actions/checkout@v4
23-
24-
- name: Setup Pages
25-
uses: actions/configure-pages@v4
2624

2725
- name: Install
2826
uses: ./.github/composite-actions/install
2927

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

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

0 commit comments

Comments
 (0)