Add technology root for the DocC rendering engine + SDK update #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Documentation to GitHub Pages | |
on: | |
push: | |
branches: ["main", "wip/xcframework"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Swift | |
uses: swift-actions/setup-swift@v2 | |
- name: Build Documentation | |
run: | | |
swift package --allow-writing-to-directory ./docs \ | |
generate-documentation --target FreemiumKit \ | |
--disable-indexing \ | |
--transform-for-static-hosting \ | |
--hosting-base-path FreemiumKit \ | |
--output-path ./docs | |
- name: Deploy to Pages | |
uses: JamesIves/github-pages-deploy-action@v4.6.0 | |
with: | |
branch: gh-pages | |
folder: docs |