Skip to content

Using Swift 6 now for GitHub actions. #2

Using Swift 6 now for GitHub actions.

Using Swift 6 now for GitHub actions. #2

Workflow file for this run

name: Documentation
on:
push:
branches: [ "main" ]
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-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Setup Swift
uses: swift-actions/setup-swift@v1
with:
swift-version: "6.0"
- name: Build documentation
run: |
swift package --allow-writing-to-directory ./docs \
generate-documentation --target Forked --target ForkedMerge --target ForkedModel --target ForkedCloudKit \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path Forked \
--output-path ./docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4