Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ env:
jobs:
generate-docc:
name: Build DocC Archives
runs-on: macos-13
runs-on: macos-15-intel
strategy:
matrix:
language: ['en', 'cn']
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Switch Xcode 🔄
run: sudo xcode-select --switch /Applications/Xcode_14.3.app
run: sudo xcode-select --reset
- name: Clone DocC Helper 👭
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -88,15 +88,19 @@ jobs:
tag: ${{ github.ref_name }}
publish:
name: Publish Documentation Site 🛜
if: github.event.release.prerelease == false && github.event.release.draft == false && github.event.release.tag_name == github.event.repository.default_branch
runs-on: macos-13
if: |
(github.event_name == 'release' &&
github.event.release.prerelease == false &&
github.event.release.draft == false) ||
github.event_name == 'workflow_dispatch'
runs-on: macos-15-intel
needs: generate-docc
strategy:
matrix:
language: ['en']
steps:
- name: Download DocC Archive ⬇️
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}-${{ matrix.language }}.doccarchive.zip
- name: Unzip Archive 😮
Expand All @@ -116,9 +120,9 @@ jobs:
--output-path docs
echo "<script>window.location.href += \"/documentation/${{ steps.package-name.outputs.lowercase }}\"</script>" > docs/index.html
- name: Upload artifact ⬆️
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
- name: Deploy to GitHub Pages 📑
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4