Skip to content

Commit 7f82061

Browse files
authored
Merge pull request #5 from AgoraIO/debug-workflow
Fix formatting in deploy_docs.yml
2 parents a24fa25 + c827385 commit 7f82061

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ env:
3131
jobs:
3232
generate-docc:
3333
name: Build DocC Archives
34-
runs-on: macos-13
34+
runs-on: macos-15-intel
3535
strategy:
3636
matrix:
3737
language: ['en', 'cn']
3838
steps:
3939
- name: Checkout 🛎️
4040
uses: actions/checkout@v3
4141
- name: Switch Xcode 🔄
42-
run: sudo xcode-select --switch /Applications/Xcode_14.3.app
42+
run: sudo xcode-select --reset
4343
- name: Clone DocC Helper 👭
4444
uses: actions/checkout@v3
4545
with:
@@ -88,15 +88,19 @@ jobs:
8888
tag: ${{ github.ref_name }}
8989
publish:
9090
name: Publish Documentation Site 🛜
91-
if: github.event.release.prerelease == false && github.event.release.draft == false && github.event.release.tag_name == github.event.repository.default_branch
92-
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
9397
needs: generate-docc
9498
strategy:
9599
matrix:
96100
language: ['en']
97101
steps:
98102
- name: Download DocC Archive ⬇️
99-
uses: actions/download-artifact@v3
103+
uses: actions/download-artifact@v4
100104
with:
101105
name: ${{ env.PACKAGE_NAME }}-${{ matrix.language }}.doccarchive.zip
102106
- name: Unzip Archive 😮
@@ -116,9 +120,9 @@ jobs:
116120
--output-path docs
117121
echo "<script>window.location.href += \"/documentation/${{ steps.package-name.outputs.lowercase }}\"</script>" > docs/index.html
118122
- name: Upload artifact ⬆️
119-
uses: actions/upload-pages-artifact@v1
123+
uses: actions/upload-pages-artifact@v3
120124
with:
121125
path: 'docs'
122126
- name: Deploy to GitHub Pages 📑
123127
id: deployment
124-
uses: actions/deploy-pages@v2
128+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)