1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

use GH actions to run the verification

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-11-26 11:01:37 -05:00
parent 89ed644ac6
commit 9e7b59ba8c
2 changed files with 6 additions and 27 deletions

View File

@ -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

View File

@ -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 }}