From ad026884e8037f87b5b78170f6056b75911506f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Mon, 19 Oct 2020 12:04:12 +0200 Subject: [PATCH] #PR 529: Add release workflow --- .github/workflows/release.yml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..e5cf14563 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +# Workflow to execute when a new version is released +name: Release + +on: + release: + + # Used for testing and manual execution + workflow_dispatch: + inputs: + tag: + description: 'Tag Ref' + required: true + +jobs: + docfx: + runs-on: ubuntu-latest + name: Update DocFX documentation + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.events.inputs.tag }} + - uses: nikeee/docfx-action@v1.0.0 + name: Build Documentation + with: + args: docs/help/docfx.json + +# Disabled until know to be working +# - uses: JamesIves/github-pages-deploy-action@3.6.2 +# name: Publish documentation to Github Pages +# with: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# BRANCH: gh-pages +# +# # The folder the action should deploy. +# FOLDER: _site +# +# # Automatically remove deleted files from the deploy branch +# CLEAN: true + + - name: Upload documentation as artifact + uses: actions/upload-artifact@v2 + with: + path: _site