Skip to content

FEATURE: Request authentication token (#146) #48

FEATURE: Request authentication token (#146)

FEATURE: Request authentication token (#146) #48

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "documentation"
cancel-in-progress: false
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
SWIFTCI_DOCC: 1
jobs:
deploy:
name: Deploy Documentation
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}documentation/tmdb
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build documentation
run: |
swift package --allow-writing-to-directory docs \
generate-documentation --target TMDb \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path TMDb \
--output-path docs
- name: Upload documentation
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4