Skip to content

Commit 4a10b39

Browse files
Merge pull request #84 from Palbahngmiyine/master
Update GitHub Actions Workflow
2 parents 34cd5bd + dd37d5b commit 4a10b39

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build-docs.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build SDK API References Documents
22

3-
"on":
3+
on:
44
release:
55
types: [ published ]
66
workflow_dispatch:
@@ -10,6 +10,10 @@ permissions:
1010
pages: write
1111
id-token: write
1212

13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
1317
jobs:
1418
build-docs:
1519
runs-on: ubuntu-latest
@@ -26,17 +30,16 @@ jobs:
2630
node-version: 18
2731
cache: pnpm
2832
cache-dependency-path: pnpm-lock.yaml
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v5
2935
- name: Install dependencies
3036
run: pnpm install --frozen-lockfile
3137
- name: Build docs
3238
run: pnpm run docs
33-
- name: Upload docs artifact
34-
uses: actions/upload-artifact@v4
39+
- name: Upload Pages artifact
40+
uses: actions/upload-pages-artifact@v4
3541
with:
36-
name: solapi-nodejs-docs-${{ github.run_number }}
3742
path: docs
38-
if-no-files-found: error
39-
retention-days: 14
4043

4144
deploy:
4245
environment:

0 commit comments

Comments
 (0)