Skip to content

Commit 34c861f

Browse files
Upload built test docs in ci
1 parent 5e71a81 commit 34c861f

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
os: [macos-latest, ubuntu-latest, windows-latest]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- uses: gradle/wrapper-validation-action@v1
2121

2222
- name: Set up JDK ${{ matrix.java }}
@@ -27,3 +27,37 @@ jobs:
2727

2828
- name: clean and build
2929
run: ./gradlew clean build -Plog-tests
30+
31+
build-docs:
32+
runs-on: ubuntu-latest
33+
name: Test Documentation Build
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Set up JDK 17
38+
uses: actions/setup-java@v3
39+
with:
40+
java-version: 17
41+
distribution: 'corretto'
42+
43+
- name: Set up Python 3.x
44+
uses: actions/setup-python@v4
45+
with:
46+
python-version: '3.x'
47+
48+
- name: clean and build
49+
run: ./gradlew clean build -Plog-tests
50+
51+
- name: Upload built plain markdown test docs
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: plain-markdown-docs
55+
path: smithy-docgen-test/build/smithyprojections/smithy-docgen-test/plain-markdown/docgen
56+
57+
- name: Upload built sphinx markdown test docs
58+
uses: actions/upload-artifact@v3
59+
with:
60+
name: sphinx-markdown-docs
61+
path: |
62+
smithy-docgen-test/build/smithyprojections/smithy-docgen-test/sphinx-markdown/docgen
63+
!smithy-docgen-test/build/smithyprojections/smithy-docgen-test/sphinx-markdown/docgen/venv

0 commit comments

Comments
 (0)