Skip to content

Commit b86298f

Browse files
authored
Merge pull request #10 from AgoraIO/debug-workflow
Debug workflow
2 parents 9e8bf94 + 69397a1 commit b86298f

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/deploy_docs.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
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
1415
permissions:
@@ -30,15 +31,15 @@ env:
3031
jobs:
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:
@@ -47,7 +48,7 @@ jobs:
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
@@ -87,8 +88,12 @@ jobs:
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

.github/workflows/workflow_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
jobs:
2626
generate-docc:
2727
name: Build DocC Archives
28-
runs-on: macos-13
28+
runs-on: macos-15-intel
2929
steps:
3030
- name: Checkout 🛎️
3131
uses: actions/checkout@v3

0 commit comments

Comments
 (0)