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