Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Apr 2, 2024
1 parent a23d49e commit 100b189
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/BuildDocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy Documentation
on:
push:
branches: ["main"]
branches: ["main", "improvement/update-workflow"]
permissions:
contents: read
pages: write
Expand All @@ -17,16 +17,19 @@ jobs:
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: Install nightly Swift
run: |
DOWNLOAD=$(curl "https://raw.githubusercontent.com/apple/swift-org-website/main/_data/builds/development/xcode.yml" | yq '.[0].download')
DIR=$(curl "https://raw.githubusercontent.com/apple/swift-org-website/main/_data/builds/development/xcode.yml" | yq '.[0].dir')
curl -L -sS --show-error --fail "https://download.swift.org/development/xcode/$DIR/$DOWNLOAD" -o $DOWNLOAD
sudo installer -store -pkg $DOWNLOAD -target /
- name: Select Xcode
run: sudo xcode-select -s '/Applications/Xcode_15.2.app'
- name: Install Playdate SDK
uses: pd-rs/[email protected]
run: |
curl -L -sS --show-error --fail "https://download.panic.com/playdate_sdk/PlaydateSDK-latest.zip" -o PlaydateSDK-latest.zip
unzip PlaydateSDK-latest.zip
sudo installer -store -pkg "PlaydateSDK.pkg" -target /
- name: Build
run: |
xcodebuild docbuild -scheme PlaydateKit \
Expand All @@ -38,10 +41,10 @@ jobs:
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
# - name: Upload
# uses: actions/upload-pages-artifact@v1
# with:
# path: 'docs'
# - name: Deploy
# id: deployment
# uses: actions/deploy-pages@v1

0 comments on commit 100b189

Please sign in to comment.