Skip to content

docs: color and heading text (#59) #5

docs: color and heading text (#59)

docs: color and heading text (#59) #5

Workflow file for this run

name: Publish Docs
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# change to macos-latest once macos-13 becomes the latest
runs-on: macos-13
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Package documentation 🛠
run: |
export DOCC_JSON_PRETTYPRINT="YES"
swift package generate-documentation \
--target WMATAUI \
--include-extended-types \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path WMATAUI.swift
- name: Upload artifact 📜
uses: actions/upload-pages-artifact@v1
with:
# Upload docs directory
path: .build/plugins/Swift-DocC/outputs/WMATAUI.doccarchive
- name: Deploy to GitHub Pages 🐙
id: deployment
uses: actions/deploy-pages@v1