Skip to content

Merge pull request #4 from mtj0928/async-sequence #15

Merge pull request #4 from mtj0928/async-sequence

Merge pull request #4 from mtj0928/async-sequence #15

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
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