Skip to content

G1J0SHI/Swift-Doc-Deployment

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

GitHub Action

Swift Doc Deployment

Deploys the Swift documentation to GitHub pages.

Setup

Before using this action, enable GitHub Pages in your repository:

  1. Go to your repository Settings
  2. Navigate to Pages in the left sidebar
  3. Under Build and deployment, set Source to GitHub Actions

Usage

name: "Swift Doc Deployment"

on: [push]

jobs:
  deploy:
    runs-on: macos-latest
    permissions:
      pages: write
      id-token: write
    environment:
      name: github-pages
      url: ${{ steps.cicd.outputs.page-url }}
    steps:
      - uses: g1j0shi/swift-doc-deployment@main
        id: cicd

Input

Name Description Required Default
target The Swift package target to generate documentation. true -

Output

Name Description
page-url URL of the deployed GitHub Pages site

Example

      ...
      - uses: g1j0shi/swift-doc-deployment@main
        id: cicd
        with:
          target: "SwiftPackage"

Packages

 
 
 

Contributors