Skip to content

Commit 34b6fce

Browse files
authored
ci: Docs (#41)
Co-authored-by: danthorpe <danthorpe@users.noreply.github.com>
1 parent f750c16 commit 34b6fce

File tree

4 files changed

+7
-93
lines changed

4 files changed

+7
-93
lines changed

.github/workflows/docs.yml

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

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ jobs:
5858
]
5959
}
6060
61-
ci:
62-
name: CI
61+
docs:
62+
name: Docs
6363
if: github.event_name == 'push'
6464
needs: [analysis, swift-package-test]
65-
uses: danthorpe/ci/.github/workflows/ci.yml@main
65+
uses: danthorpe/ci/.github/workflows/docs.yml@main
66+
with:
67+
os: 'macos-14'
68+
targets: '["Cache","Protected","ShortID"]'
69+
basepath: 'swift-utilities'

.scripts/ci-test.sh

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

Makefile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,6 @@ default:
1313
test-all:
1414
swift test
1515

16-
docs-all:
17-
$(MAKE) docs output=$(output) tag=$(tag) basepath=$(basepath) target=Cache
18-
$(MAKE) docs output=$(output) tag=$(tag) basepath=$(basepath) target=Protected
19-
$(MAKE) docs output=$(output) tag=$(tag) basepath=$(basepath) target=ShortID
20-
2116
test-linux:
2217
docker build -f Dockerfile -t linuxtest .
2318
docker run linuxtest
24-
25-
docs:
26-
mkdir -p $(output)/$(tag)/$(target)
27-
swift package \
28-
--allow-writing-to-directory $(output)/$(tag)/$(target) \
29-
generate-documentation --target $(target) \
30-
--output-path $(output)/$(tag)/$(target) \
31-
--transform-for-static-hosting \
32-
--hosting-base-path /$(basepath)/$(tag)/$(target) \
33-
&& echo "✅ Documentation generated for $(target) @ $(tag) release." \
34-
|| echo "⚠️ Documentation skipped for $(target) @ $(tag)."

0 commit comments

Comments
 (0)