Skip to content

Commit

Permalink
Add doc action
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Nov 15, 2020
1 parent 137c98d commit f44b528
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation

on:
workflow_dispatch: {}
push:
branches:
- master
paths:
- .github/workflows/documentation.yml
- Sources/**.swift

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Generate Documentation
uses: SwiftDocOrg/swift-doc@master
with:
inputs: "Sources"
output: "Documentation"
- name: Upload Documentation Netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=Documentation --functions=functions
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 comments on commit f44b528

Please sign in to comment.