mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Switch to using npm over yarn Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Remove reference to `yarn` from documentation Signed-off-by: Sebastian Malton <sebastian@malton.name> * Enable NPM workspaces Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Introduce script for installing all dependencies Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Remove usage of lerna bootstrap for no longer being used Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Fix build by not bundling libraries for application in node environment (main) as Electron does that Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Tweak evil static import paths in build of application Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Consolidate npmrc configs to root since required by workspaces Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Make application build not fail for not detecting electron version Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Update package-lock Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Make sure native dependencies are rebuilt for electron Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Remove unused binary for causing trouble when installing dependencies Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Update package-lock Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Disable caching in CI for Windows Installing Electron in Windows seems to be broken in this regards. Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> --------- Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Sebastian Malton <sebastian@malton.name> Co-authored-by: Sebastian Malton <sebastian@malton.name>
68 lines
2.4 KiB
YAML
68 lines
2.4 KiB
YAML
name: Manual documentation update to sync a deployed Version with Master branch
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version string to use (e.g."v0.0.1")'
|
|
required: true
|
|
jobs:
|
|
build:
|
|
name: Manual documentation update to sync a deployed Version with Master branch
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
steps:
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git
|
|
pip install mike
|
|
|
|
- name: Checkout Version from lens
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
ref: "${{ github.event.inputs.version }}"
|
|
|
|
- name: Using Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Generate Extensions API Reference using typedocs
|
|
run: |
|
|
npm install
|
|
npm run typedocs-extensions-api
|
|
|
|
- name: Checkout master branch from lens
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: "master"
|
|
ref: "master"
|
|
|
|
- name: Bring in latest mkdocs.yml from master
|
|
run: |
|
|
cp -p ./master/mkdocs.yml .
|
|
cp -p ./master/docs/stylesheets/extra.css ./docs/stylesheets/extra.css
|
|
rm -fr ./docs/clusters ./docs/contributing ./docs/faq ./docs/getting-started ./docs/helm ./docs/support ./docs/supporting
|
|
sed -i '/Protocol Handlers/d' ./mkdocs.yml
|
|
sed -i '/IPC/d' ./mkdocs.yml
|
|
sed -i 's#../../clusters/adding-clusters.md#https://docs.k8slens.dev/getting-started/add-cluster/#g' ./docs/extensions/get-started/your-first-extension.md
|
|
sed -i 's#clusters/adding-clusters.md#https://docs.k8slens.dev//getting-started/adding-clusters/#g' ./docs/README.md
|
|
sed -i 's#../../contributing/README.md#https://docs.k8slens.dev/contributing/#g' ./docs/extensions/guides/generator.md
|
|
|
|
- name: git config
|
|
run: |
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
|
|
- name: mkdocs deploy new release
|
|
run: |
|
|
mike deploy --push --force ${{ github.event.inputs.version }}
|