mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix 'mkdocs deploy master' workflow (#4810)
This commit is contained in:
parent
2b952e193e
commit
0017f515ab
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
concurrency:
|
||||||
|
group: publish-docs
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
verify-docs:
|
verify-docs:
|
||||||
name: Verify docs
|
name: Verify docs
|
||||||
@ -17,7 +20,7 @@ jobs:
|
|||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: "3.x"
|
||||||
|
|
||||||
- name: Checkout Release from lens
|
- name: Checkout Release from lens
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -31,8 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Extensions API Reference using typedocs
|
- name: Generate Extensions API Reference using typedocs
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
yarn typedocs-extensions-api
|
yarn typedocs-extensions-api
|
||||||
|
|
||||||
- name: Verify that the markdown is valid
|
- name: Verify that the markdown is valid
|
||||||
run: |
|
run: |
|
||||||
@ -49,7 +52,7 @@ jobs:
|
|||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: "3.x"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -64,8 +67,8 @@ jobs:
|
|||||||
|
|
||||||
- name: git config
|
- name: git config
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
|
||||||
- name: Using Node.js ${{ matrix.node-version }}
|
- name: Using Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
@ -74,13 +77,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Extensions API Reference using typedocs
|
- name: Generate Extensions API Reference using typedocs
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
yarn typedocs-extensions-api
|
yarn typedocs-extensions-api
|
||||||
|
|
||||||
- name: mkdocs deploy master
|
- name: mkdocs deploy master
|
||||||
if: contains(github.ref, 'refs/heads/master')
|
if: contains(github.ref, 'refs/heads/master')
|
||||||
run: |
|
run: |
|
||||||
mike deploy --push master
|
mike deploy --push master
|
||||||
|
|
||||||
- name: Get the release version
|
- name: Get the release version
|
||||||
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease
|
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease
|
||||||
@ -90,5 +93,5 @@ jobs:
|
|||||||
- name: mkdocs deploy new release
|
- name: mkdocs deploy new release
|
||||||
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease
|
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease
|
||||||
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