Skip to content

feat(cli): make rate-limit, max-retries, concurrent-downloads and bat… #65

feat(cli): make rate-limit, max-retries, concurrent-downloads and bat…

feat(cli): make rate-limit, max-retries, concurrent-downloads and bat… #65

Workflow file for this run

name: Deploy DocC
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-*'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-15
timeout-minutes: 30
env:
DEVELOPER_DIR: "/Applications/Xcode_26.2.app/Contents/Developer"
steps:
- uses: actions/checkout@v6
- name: Install Swift 6.3 toolchain
run: |
curl -fLo swift-6.3.pkg "https://download.swift.org/swift-6.3-release/xcode/swift-6.3-RELEASE/swift-6.3-RELEASE-osx.pkg"
sudo installer -pkg swift-6.3.pkg -target /
TOOLCHAINS=$(plutil -extract CFBundleIdentifier raw /Library/Developer/Toolchains/swift-6.3-RELEASE.xctoolchain/Info.plist)
echo "TOOLCHAINS=$TOOLCHAINS" >> "$GITHUB_ENV"
- name: Build DocC
run: |
swift package --allow-writing-to-directory docs \
generate-documentation --target ExFigCLI \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path exfig \
--output-path docs
echo '<script>window.location.href += "/documentation/exfigcli"</script>' > docs/index.html
- uses: actions/upload-pages-artifact@v4
with:
path: docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5