Skip to content

Commit 9e1c868

Browse files
committed
Deploy docs
1 parent 80b5657 commit 9e1c868

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed

.github/workflows/build-docs.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches: ["main"]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
id-token: write
11+
pages: write
12+
813
env:
914
INSTANCE: 'Writerside/ar'
1015
DOCKER_VERSION: '2025.04.8412'
@@ -56,4 +61,45 @@ jobs:
5661
artifacts/${{ steps.define-ids.outputs.artifact }}
5762
artifacts/report.json
5863
artifacts/${{ steps.define-ids.outputs.algolia_artifact }}
59-
retention-days: 7
64+
retention-days: 7
65+
test:
66+
needs: build
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Download artifacts
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: docs
73+
path: artifacts
74+
75+
- name: Test documentation
76+
uses: JetBrains/writerside-checker-action@v1
77+
with:
78+
instance: ${{ env.INSTANCE }}
79+
deploy:
80+
environment:
81+
name: github-pages
82+
url: ${{ steps.deployment.outputs.page_url }}
83+
needs: [ build, test ]
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Download artifacts
87+
uses: actions/download-artifact@v4
88+
with:
89+
name: docs
90+
path: artifacts
91+
92+
- name: Unzip artifact
93+
run: unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.artifact }}" -d dir
94+
95+
- name: Setup Pages
96+
uses: actions/configure-pages@v4
97+
98+
- name: Package and upload Pages artifact
99+
uses: actions/upload-pages-artifact@v3
100+
with:
101+
path: dir
102+
103+
- name: Deploy to GitHub Pages
104+
id: deployment
105+
uses: actions/deploy-pages@v4

Writerside/writerside.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!DOCTYPE ihp SYSTEM "https://resources.jetbrains.com/writerside/1.0/ihp.dtd">
33

44
<ihp version="2.0">
5-
<topics dir="topics" web-path="topics"/>
6-
<images dir="images" web-path="images"/>
5+
<topics dir="topics" />
6+
<images dir="images" web-path="senwin-api"/>
77
<instance src="ar.tree"/>
88
</ihp>

0 commit comments

Comments
 (0)