Skip to content

Commit 7947d84

Browse files
authored
Update docc.yml
1 parent e0f4729 commit 7947d84

1 file changed

Lines changed: 29 additions & 27 deletions

File tree

.github/workflows/docc.yml

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
name: docc
2-
on:
2+
'on':
33
push:
4-
branches: ["main"]
4+
branches:
5+
- main
56
permissions:
67
contents: read
78
pages: write
89
id-token: write
910
concurrency:
10-
group: "pages"
11+
group: pages
1112
cancel-in-progress: true
1213
jobs:
1314
pages:
14-
environment:
15-
name: github-pages
16-
url: ${{ steps.deployment.outputs.page_url }}
17-
runs-on: macos-12
18-
steps:
19-
- name: git checkout
20-
uses: actions/checkout@v3
21-
- name: docbuild
22-
run: |
23-
xcodebuild docbuild -scheme Camel \
24-
-derivedDataPath /tmp/docbuild \
25-
-destination 'generic/platform=iOS';
26-
$(xcrun --find docc) process-archive \
27-
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Camel.doccarchive \
28-
--hosting-base-path Camel \
29-
--output-path docs;
30-
echo "<script>window.location.href += \"/documentation/camel\"</script>" > docs/index.html;
31-
- name: artifacts
32-
uses: actions/upload-pages-artifact@v1
33-
with:
34-
path: 'docs'
35-
- name: deploy
36-
id: deployment
37-
uses: actions/deploy-pages@v1
15+
environment:
16+
name: github-pages
17+
url: '${{ steps.deployment.outputs.page_url }}'
18+
runs-on: macos-12
19+
steps:
20+
- name: git checkout
21+
uses: actions/checkout@v3
22+
- name: docbuild
23+
run: >
24+
xcodebuild docbuild -scheme Camel \
25+
-derivedDataPath /tmp/docbuild \
26+
-destination 'generic/platform=iOS';
27+
$(xcrun --find docc) process-archive \
28+
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Camel.doccarchive \
29+
--hosting-base-path Camel \
30+
--output-path docs;
31+
echo "<script>window.location.href +=
32+
\"/documentation/camel\"</script>" > docs/index.html;
33+
- name: artifacts
34+
uses: actions/upload-pages-artifact@v1
35+
with:
36+
path: docs
37+
- name: deploy
38+
id: deployment
39+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)