Skip to content

Merge pull request #10 from fdgogogo/main #8

Merge pull request #10 from fdgogogo/main

Merge pull request #10 from fdgogogo/main #8

Workflow file for this run

# Taken from https://github.com/fwcd/lighthouse-client-swift/blob/e9f345f1d936c917e520449e379c9c0f00cccbb2/.github/workflows/docs.yml
name: Build DocC
on:
push:
branches: [main]
paths:
- "Sources/SwiftyRedis/**"
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build-docc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Pages
uses: actions/[email protected]
- name: Set up Swift
uses: swift-actions/[email protected]
with:
swift-version: "5.7.1"
- name: Generate DocC
uses: fwcd/swift-docc-action@v1
with:
target: SwiftyRedis
output: ./public
transform-for-static-hosting: "true"
disable-indexing: "true"
hosting-base-path: swifty-redis
- name: Upload artifact
uses: actions/[email protected]
with:
path: ./public
deploy-to-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-docc
steps:
- name: Deploy DocC to Pages
uses: actions/deploy-pages@v1