From ad30c3a14c024035d4412577eba06aac6d77d721 Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Tue, 28 Jul 2020 10:29:32 +0200 Subject: [PATCH] Add documentation github workflow --- .github/workflows/documentation.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..4d23c2d --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,28 @@ +name: Documentation + +on: + push: + branches: + - master + paths: + - .github/workflows/documentation.yml + - Sources/FirebladeECS/**.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/FirebladeECS" + output: "Documentation" + - name: Publish to GitHub Wiki + uses: SwiftDocOrg/github-wiki-publish-action@1.0.0 + with: + path: "Documentation" + env: + GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} \ No newline at end of file