99 branches : [main]
1010 push :
1111 branches : [main]
12+ workflow_dispatch :
1213
1314# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1415permissions :
3031jobs :
3132 generate-docc :
3233 name : Build DocC Archives
33- runs-on : macos-13
34+ runs-on : macos-15-intel
3435 strategy :
3536 matrix :
3637 language : ['en', 'cn']
3738 steps :
3839 - name : Checkout 🛎️
3940 uses : actions/checkout@v3
4041 - name : Switch Xcode 🔄
41- run : sudo xcode-select --switch /Applications/Xcode_14.3.app
42+ run : sudo xcode-select --reset
4243 - name : Clone DocC Helper 👭
4344 uses : actions/checkout@v3
4445 with :
4748 - name : Setup Xcode Project 🛠️
4849 run : |
4950 sh -e xcframework-to-docc/dl_framework.sh ${{ env.PACKAGE_NAME }}
50- sh -e xcframework-to-docc/move_header_files.sh ${{ env.PACKAGE_NAME }}.xcframework ${{ env.PACKAGE_NAME }}.docc
51+ sh -e xcframework-to-docc/move_header_files.sh ${{ env.PACKAGE_NAME }}.xcframework ${{ env.PACKAGE_NAME }}.docc ios-arm64
5152 sh -e xcframework-to-docc/headers_to_xcodeproj.sh ${{ env.PACKAGE_NAME }} docc_builder
5253 - name : Clone Python Script 👭
5354 uses : actions/checkout@v3
8788 tag : ${{ github.ref_name }}
8889 publish :
8990 name : Publish Documentation Site 🛜
90- if : github.event.release.prerelease == false && github.event.release.draft == false && github.event.release.tag_name == github.event.repository.default_branch
91- runs-on : macos-13
91+ if : |
92+ (github.event_name == 'release' &&
93+ github.event.release.prerelease == false &&
94+ github.event.release.draft == false) ||
95+ github.event_name == 'workflow_dispatch'
96+ runs-on : macos-15-intel
9297 needs : generate-docc
9398 strategy :
9499 matrix :
@@ -115,9 +120,9 @@ jobs:
115120 --output-path docs
116121 echo "<script>window.location.href += \"/documentation/${{ steps.package-name.outputs.lowercase }}\"</script>" > docs/index.html
117122 - name : Upload artifact ⬆️
118- uses : actions/upload-pages-artifact@v1
123+ uses : actions/upload-pages-artifact@v3
119124 with :
120125 path : ' docs'
121126 - name : Deploy to GitHub Pages 📑
122127 id : deployment
123- uses : actions/deploy-pages@v2
128+ uses : actions/deploy-pages@v4
0 commit comments