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:
parent
4f4c441f74
commit
24329f462f
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -27,11 +27,21 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install mkdocs-material
|
pip install mkdocs-material
|
||||||
|
|
||||||
- name: Build mkdocs
|
- name: Build mkdocs and copy to .-/lensdocs
|
||||||
run: |
|
run: |
|
||||||
mkdocs build
|
mkdocs build
|
||||||
cp -R site/* ./lensdocs/.
|
cp -R site/* ./lensdocs/.
|
||||||
cd ./lensdocs/
|
|
||||||
git commit -am "Build mkdocs from GH-Actions"
|
- name: Commit files
|
||||||
git push
|
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 }}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user