From 4f4c441f74aa9fc35549f047897c2ad2d6886e00 Mon Sep 17 00:00:00 2001 From: Mario Sarcher Date: Tue, 27 Oct 2020 15:36:51 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f72cce4c3a..9975fd1050 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,20 @@ jobs: repository: lensapp/docs path: lensdocs - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - 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 mkdocs-material + + - name: Build mkdocs + run: | + mkdocs build + cp -R site/* ./lensdocs/. + cd ./lensdocs/ + git commit -am "Build mkdocs from GH-Actions" + git push