Skip to content

Refactor StarknetProvider and StarknetRequest (#217) #28

Refactor StarknetProvider and StarknetRequest (#217)

Refactor StarknetProvider and StarknetRequest (#217) #28

name: Build and publish docs
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build-and-publish-docs:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Xcode 15.3
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with:
xcode-version: 15.3
- 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