Skip to content

Publish

Publish #7

Workflow file for this run

name: Publish
on:
release:
types: [ released, prereleased ]
jobs:
docc:
name: Generate and publish documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Swift
uses: swift-actions/setup-swift@v3
with:
skip-verify-signature: true
- name: Generate documentation
uses: fwcd/swift-docc-action@v1
with:
target: URLSessionExtension
output: ./docs
hosting-base-path: storyblok-swift
transform-for-static-hosting: 'true'
- name: Deploy API documentation to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs
target-folder: docs