From 9e7b59ba8cff744250dc0dfdc679df91e84368de Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 26 Nov 2020 11:01:37 -0500 Subject: [PATCH] use GH actions to run the verification Signed-off-by: Sebastian Malton --- .azure-pipelines.yml | 24 ------------------------ .github/workflows/main.yml | 9 ++++++--- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index bb5b02c3b8..33dfe83206 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -162,27 +162,3 @@ jobs: condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))" env: NPM_TOKEN: $(NPM_TOKEN) ---- -variables: - YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn -pr: - - master - - releases/* -trigger: - branches: - include: - - '*' - tags: - include: - - "area/documentation" -jobs: - - job: Check-Docs - pool: - vmImage: ubuntu-16.04 - strategy: - matrix: - node_12.x: - node_version: 12.x - steps: - - displayName: Verify that docs build - script: yarn run mkdocs-verify diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d70f5f10dd..a282cad912 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: branches: - master release: - types: + types: - published jobs: build: @@ -41,6 +41,10 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Verify that the markdown is valid + run: | + yarn run mkdocs-verify + - name: Generate Extensions API Reference using typedocs run: | yarn install @@ -55,10 +59,9 @@ jobs: if: contains(github.ref, 'refs/tags/v') # && !github.event.release.prerelease (generate pre-release docs until Lens 4.0.0 is GA, see #1408) id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - + - name: mkdocs deploy new release if: contains(github.ref, 'refs/tags/v') # && !github.event.release.prerelease (generate pre-release docs until Lens 4.0.0 is GA, see #1408) run: | mike deploy --push --update-aliases ${{ steps.get_version.outputs.VERSION }} latest mike set-default --push ${{ steps.get_version.outputs.VERSION }} -