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 39e7fa2
Show file tree
Hide file tree
Showing 672 changed files with 49 additions and 1,036 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/BuildDocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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'
- name: Install Playdate SDK
uses: pd-rs/[email protected]
- name: Build
run: |
xcodebuild docbuild -scheme PlaydateKit \
-configuration Release \
-derivedDataPath /tmp/docc \
-destination 'platform=macOS' \
-toolchain "swift latest";
$(xcrun -f docc -toolchain "swift latest") 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
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.10
// swift-tools-version: 5.9

import PackageDescription

Expand Down
2 changes: 1 addition & 1 deletion Sources/PlaydateKit/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@PageImage(purpose: icon, source: "Logo")
}

Create games for Playdate using Swift.
Create artisinal games for Playdate using Swift.

## Topics

Expand Down
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 39e7fa2

Please sign in to comment.