Update documentation action

This commit is contained in:
Christian Treffs 2020-07-28 11:11:17 +02:00
parent 9570bc5d50
commit 3f46aa9611
No known key found for this signature in database
GPG Key ID: 49A4B4B460BE3ED4
1 changed files with 13 additions and 9 deletions

View File

@ -2,8 +2,12 @@ name: Documentation
on: on:
push: push:
branches: branches: [ master ]
- master paths:
- .github/workflows/documentation.yml
- Sources/FirebladeECS/**.swift
pull_request:
branches: [ master ]
paths: paths:
- .github/workflows/documentation.yml - .github/workflows/documentation.yml
- Sources/FirebladeECS/**.swift - Sources/FirebladeECS/**.swift
@ -13,16 +17,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - uses: actions/checkout@v1
uses: actions/checkout@v1 - name: Generate documentation
- name: Generate Documentation uses: SwiftDocOrg/swift-doc@master
uses: SwiftDocOrg/swift-doc@1.0.0-beta.3
with: with:
inputs: "Sources/FirebladeECS" inputs: "FirebladeECS"
output: "Documentation" output: "Documentation"
- name: Publish to GitHub Wiki - name: Publish to wiki
uses: SwiftDocOrg/github-wiki-publish-action@1.0.0 uses: SwiftDocOrg/github-wiki-publish-action@master
with: with:
path: "Documentation" path: "Documentation"
env: env:
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}