Skip to content

Commit

Permalink
Build docs using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Mar 26, 2024
1 parent 163aa98 commit 48329c1
Show file tree
Hide file tree
Showing 670 changed files with 44 additions and 1,034 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/BuildDocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy Documentation
on:
push:
branches: ["main", "improvement/github-actions-docc"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
DeployDocs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Setup Swift
uses: SwiftyLab/setup-swift@latest
with:
development: true
swift-version: latest
check-latest: true
- name: Select Xcode
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
- name: Build
run: |
xcodebuild docbuild -scheme PlaydateKit \
-derivedDataPath /tmp/docc \
-destination 'platform=macOS' \
-toolchain ${{ env.TOOLCHAINS }};
$(xcrun -f docc -toolchain ${{ env.TOOLCHAINS }}) process-archive \
transform-for-static-hosting $(find /tmp/docc -type d -name '*.doccarchive') \
--hosting-base-path PlaydateKit \
--output-path docs;
- name: Upload
uses: actions/upload-pages-artifact@v1
with:
path: 'docs'
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
9 changes: 0 additions & 9 deletions docs/css/223.5ab1188f.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/css/427.ee43802d.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/css/documentation-topic.5ce24f8e.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/css/index.33ec2115.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/css/topic.7ff1c1f8.css

This file was deleted.

9 changes: 0 additions & 9 deletions docs/css/tutorials-overview.e4891d45.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/data/documentation/playdatekit.json

This file was deleted.

Loading

0 comments on commit 48329c1

Please sign in to comment.