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 16:06:12 +01:00 committed by GitHub
parent 7a42cc8110
commit df073807d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,11 +15,11 @@ jobs:
repository: lensapp/lens repository: lensapp/lens
path: lens path: lens
- name: Checkout Branch "gh-pages" from "lensapp/docs" # - name: Checkout Branch "gh-pages" from "lensapp/docs"
uses: actions/checkout@v2 # uses: actions/checkout@v2
with: # with:
repository: lensapp/docs # repository: lensapp/docs
path: lensdocs # path: lensdocs
- name: Set up Python 3.7 - name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v2
@ -30,24 +30,24 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install mkdocs-material pip install mkdocs-material
- name: Build mkdocs and copy to .-/lensdocs - name: mkdocs deploy
run: | run: |
cd lens/ cd lens/
mkdocs build mkdocs gh-deploy
cp -R site/* ../lensdocs/.
- name: Commit files # - name: Commit files
run: | # run: |
cd lensdocs/ # cd lensdocs/
git config --local user.email "action@github.com" # git config --local user.email "action@github.com"
git config --local user.name "GitHub Action" # git config --local user.name "GitHub Action"
git commit -am "Build mkdocs from GH-Actions" # git commit -am "Build mkdocs from GH-Actions"
- name: Push changes # - name: Push changes
uses: ad-m/github-push-action@master # uses: ad-m/github-push-action@master
with: # with:
directory: ./lensdocs # directory: ./lensdocs
repository: lensapp/docs # repository: lensapp/docs
branch: gh-pages # branch: gh-pages
github_token: ${{ secrets.GH_TOKEN }} # github_token: ${{ secrets.GH_TOKEN }}