Skip to content

Commit 0332770

Browse files
committed
Simplified CI
1 parent 4d1047d commit 0332770

2 files changed

Lines changed: 19 additions & 42 deletions

File tree

.github/workflows/swift-test.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/swift.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ jobs:
1717
run: swift build -v
1818
- name: Run tests
1919
run: swift test -v
20+
- name: Resolve Package Dependencies
21+
run: swift package resolve
22+
23+
- name: Generate Documentation
24+
run: |
25+
swift package generate-documentation \
26+
--target PartialJSON \
27+
--disable-indexing \
28+
--transform-for-static-hosting \
29+
--hosting-base-path PartialJSON \
30+
--output-path ./docs
31+
continue-on-error: false
32+
33+
- name: Upload Documentation to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./docs
2038

2139
lint:
2240
name: SwiftLint
@@ -47,26 +65,7 @@ jobs:
4765
uses: SwiftyLab/setup-swift@latest
4866
with:
4967
swift-version: '5.9'
50-
51-
- name: Resolve Package Dependencies
52-
run: swift package resolve
53-
54-
- name: Generate Documentation
55-
run: |
56-
swift package generate-documentation \
57-
--target PartialJSON \
58-
--disable-indexing \
59-
--transform-for-static-hosting \
60-
--hosting-base-path PartialJSON \
61-
--output-path ./docs
62-
continue-on-error: false
63-
64-
- name: Upload Documentation to GitHub Pages
65-
uses: peaceiris/actions-gh-pages@v3
66-
with:
67-
github_token: ${{ secrets.GITHUB_TOKEN }}
68-
publish_dir: ./docs
69-
68+
7069
validate-documentation:
7170
name: Validate Documentation
7271
runs-on: macos-latest

0 commit comments

Comments
 (0)