File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : docc
2- on :
2+ ' on ' :
33 push :
4- branches: ["main"]
4+ branches :
5+ - main
56permissions :
67 contents : read
78 pages : write
89 id-token : write
910concurrency :
10- group: " pages"
11+ group : pages
1112 cancel-in-progress : true
1213jobs :
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
You can’t perform that action at this time.
0 commit comments