Skip to content

Commit 19a3d59

Browse files
committed
Add CI/CD workflow for documentation build and deployment to Cloudflare Pages.
1 parent d69ad8c commit 19a3d59

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and deploy docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'docs/**'
8+
- '.github/workflows/docs-workflow.yml'
9+
10+
env:
11+
WRITERSIDE_VERSION: "2025.04.8412"
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Build docs
20+
run: >
21+
docker run --rm -v ${{ github.workspace }}:/opt/sources
22+
-e SOURCE_DIR=/opt/sources/docs/
23+
-e MODULE_INSTANCE=Writerside/v
24+
-e OUTPUT_DIR=/opt/sources/output
25+
-e RUNNER=other
26+
jetbrains/writerside-builder:${{ env.WRITERSIDE_VERSION }}
27+
28+
- name: Extract built docs
29+
run: |
30+
mkdir -p deploy
31+
unzip output/webHelpV2-all.zip -d deploy
32+
33+
- name: Deploy to Cloudflare Pages
34+
uses: cloudflare/wrangler-action@v3
35+
with:
36+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
37+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
38+
command: pages deploy deploy --project-name=nullopsdevs-bootstrap --branch=main

src/NullOpsDevs.Bootstrap.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NullOpsDevs.Bootstrap", "Nu
44
EndProject
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NullOpsDevs.Bootstrap.Example", "NullOpsDevs.Bootstrap.Example\NullOpsDevs.Bootstrap.Example.csproj", "{2518CCAD-D710-4D72-A3DE-D2A311A9FD56}"
66
EndProject
7+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI-CD", "CI-CD", "{816B745E-8A54-4CE9-A285-945EC121D5A9}"
8+
ProjectSection(SolutionItems) = preProject
9+
..\.github\workflows\docs-workflow.yml = ..\.github\workflows\docs-workflow.yml
10+
EndProjectSection
11+
EndProject
712
Global
813
GlobalSection(SolutionConfigurationPlatforms) = preSolution
914
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)