aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build_docs.yaml
blob: ef8f8cf8a34fe2ba9181e18ec0f6c0484de7c082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Publish Documentation

on:
  release:
    types:
      - published
      - edited
  push:
    branches: [ master ]

permissions:
  contents: write

concurrency:
  group: ${{ github.ref }}
  cancel-in-progress: true

jobs:
  generate-and-publish-docs:
    runs-on: macOS-latest
    steps:
      - name: Get da Code
        uses: actions/checkout@v4
      - name: Swift Package Documentation Generator
        uses: sersoft-gmbh/swifty-docs-action@v3.0.0
        with:
          transform-for-static-hosting: true
          hosting-base-path: swift-gopher
          output: docs