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:
parent
89ed644ac6
commit
9e7b59ba8c
@ -162,27 +162,3 @@ jobs:
|
|||||||
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
condition: "and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))"
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: $(NPM_TOKEN)
|
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
|
|
||||||
|
|||||||
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -41,6 +41,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Verify that the markdown is valid
|
||||||
|
run: |
|
||||||
|
yarn run mkdocs-verify
|
||||||
|
|
||||||
- name: Generate Extensions API Reference using typedocs
|
- name: Generate Extensions API Reference using typedocs
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
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)
|
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
|
id: get_version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
|
|
||||||
- name: mkdocs deploy new release
|
- 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)
|
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: |
|
run: |
|
||||||
mike deploy --push --update-aliases ${{ steps.get_version.outputs.VERSION }} latest
|
mike deploy --push --update-aliases ${{ steps.get_version.outputs.VERSION }} latest
|
||||||
mike set-default --push ${{ steps.get_version.outputs.VERSION }}
|
mike set-default --push ${{ steps.get_version.outputs.VERSION }}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user