1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Update main.yml

This commit is contained in:
Mario Sarcher 2020-10-27 15:41:34 +01:00 committed by GitHub
parent 4f4c441f74
commit 24329f462f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,11 +27,21 @@ jobs:
python -m pip install --upgrade pip
pip install mkdocs-material
- name: Build mkdocs
- name: Build mkdocs and copy to .-/lensdocs
run: |
mkdocs build
cp -R site/* ./lensdocs/.
cd ./lensdocs/
git commit -am "Build mkdocs from GH-Actions"
git push
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "Build mkdocs from GH-Actions"
- name: Push changes
uses: ad-m/github-push-action@master
with:
directory: ./lensdocs
branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}