Skip to content

Commit f04c3b1

Browse files
committed
Simplify docs generation with existing Docker container
1 parent d4a8d8d commit f04c3b1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
container: "norionomura/jazzy"
1011

1112
steps:
1213
- name: Cancel Previous Runs
@@ -15,19 +16,10 @@ jobs:
1516
access_token: ${{ github.token }}
1617
workflow_id: 1778578
1718
- uses: actions/checkout@v2
18-
- uses: actions/cache@v2
19-
with:
20-
path: vendor/bundle
21-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-gems-
24-
- name: Install Bundler
25-
run: |
26-
sudo gem install bundler
27-
bundle config path vendor/bundle
28-
bundle install --jobs 4 --retry 3
19+
- name: Run SourceKitten
20+
run: sourcekitten doc --spm-module SwiftShortcuts > SwiftShortcuts.json
2921
- name: Generate Jazzy Docs
30-
run: jazzy
22+
run: jazzy --sourcekitten-sourcefile SwiftShortcuts.json
3123
- name: Publish to GitHub Pages
3224
run: |
3325
cd docs

0 commit comments

Comments
 (0)