Skip to content

Update docc.yml

Update docc.yml #19

Workflow file for this run

name: DocC
on:
push:
branches:
- main
jobs:
BuildDocC:
runs-on: macos-15
env:
DEVELOPER_DIR: "/Applications/Xcode_16.2.app/Contents/Developer"
steps:
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: "6.0"
- uses: actions/checkout@v4
- name: Build DocC
run: |
swift package --allow-writing-to-directory ./docs generate-documentation \
--target AsyncOperations \
--disable-indexing \
--output-path ./docs \
--transform-for-static-hosting \
--hosting-base-path swift-async-operations \
--source-service github \
--source-service-base-url https://github.com/mtj0928/swift-async-operations/blob/main \
--checkout-path $GITHUB_WORKSPACE
env:
DOCC_BUILD: 1
- uses: actions/upload-pages-artifact@v3
id: docs
with:
path: docs
DeployDocC:
needs: BuildDocC
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: docs
uses: actions/deploy-pages@v4