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-30 12:57:04 +01:00 committed by GitHub
parent 920a8af5c8
commit 4a8b2c3430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,14 +13,6 @@ jobs:
uses: actions/checkout@v2
with:
repository: lensapp/lens
path: lens
# - name: Checkout lensapp/mkdocs-material-insiders
# uses: actions/checkout@v2
# with:
# repository: lensapp/mkdocs-material-insiders
# path: mkdocs-material-insiders
# token: ${{ secrets.GH_TOKEN }}
- name: Set up Python 3.7
uses: actions/setup-python@v2
@ -41,30 +33,14 @@ jobs:
- name: mkdocs deploy latest
if: contains(github.ref, 'refs/heads/')
run: |
cd lens/
mike deploy --push --rebase --update-aliases ${{ github.sha }} latest
mike deploy --push --force --update-aliases ${{ github.sha }} latest
- name: mkdocs deploy new release / tag
if: contains(github.ref, 'refs/tags/v')
run: |
cd lens/
mike deploy --push --rebase --update-aliases ${{ github.sha }} latest
mike set-default --rebase --push ${{ github.sha }}
# - name: Commit files
# run: |
# cd lensdocs/
# 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
# repository: lensapp/docs
# branch: gh-pages
# github_token: ${{ secrets.GH_TOKEN }}