This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
Add default container implementation for widgets #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Docs | |
on: | |
push: | |
branches: ["main"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
Deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Docs | |
run: | | |
xcrun xcodebuild docbuild \ | |
-scheme Meta \ | |
-destination 'generic/platform=macOS' \ | |
-derivedDataPath "$PWD/.derivedData" \ | |
-skipPackagePluginValidation | |
xcrun docc process-archive transform-for-static-hosting \ | |
"$PWD/.derivedData/Build/Products/Debug/Meta.doccarchive" \ | |
--output-path "docs" \ | |
--hosting-base-path "Meta" | |
- name: Modify Docs | |
run: | | |
echo "<script>window.location.href += \"/documentation/meta\"</script>" > docs/index.html; | |
sed -i '' 's/,2px/,10px/g' docs/css/index.*.css | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |