Skip to content

Support RPC 0.9.0-rc.2 (#246) #34

Support RPC 0.9.0-rc.2 (#246)

Support RPC 0.9.0-rc.2 (#246) #34

name: Build and publish docs
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build-and-publish-docs:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with:
xcode-version: '16.2.0'
- name: Build docs
run: |
xcodebuild docbuild \
-scheme Starknet \
-derivedDataPath /tmp/docbuild \
-destination 'generic/platform=iOS';
$(xcrun --find docc) process-archive \
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/Starknet.doccarchive \
--hosting-base-path starknet.swift \
--output-path docs;
echo "<script>window.location.href += \"/documentation/starknet\"</script>" > docs/index.html;
- name: Deploy
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
with:
folder: docs
branch: gh-pages
single-commit: true