From ee9157d3caeb9e2dbc84b768a1f0bade6c5da7a6 Mon Sep 17 00:00:00 2001 From: Moritz Lang Date: Thu, 10 Sep 2020 12:21:09 +0200 Subject: [PATCH] Add documentation GitHub action --- .github/workflows/documentation.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/documentation.yaml diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml new file mode 100644 index 0000000..7a74f1b --- /dev/null +++ b/.github/workflows/documentation.yaml @@ -0,0 +1,26 @@ +name: Documentation +on: + release: + types: + - published + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Generate Documentation + uses: SwiftDocOrg/swift-doc@master + with: + format: html + module-name: "W3C Trace Context" + output: Documentation + - name: Update Permissions + run: 'sudo chown --recursive $USER Documentation' + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: Documentation