Modified github actions

This commit is contained in:
John Nguyen 2020-12-01 14:47:33 +01:00
parent 35bae85c29
commit b220fe38f2
1 changed files with 23 additions and 20 deletions

View File

@ -1,22 +1,25 @@
name: Deploy Powerlevel10k Docs name: Powerlevel10k Documentation on Push
on: on: push
push:
branches:
- master
jobs: jobs:
build: action-filter:
name: Deploy docs runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@master
- name: Setup Python - name: action-filter
uses: actions/setup-python@v2 uses: actions/bin/filter@master
with: with:
python-version: 3.8 args: branch master
- name: Install Mkdocs - name: files-filter
run: | uses: wcchristian/gh-pattern-filter-action@master
python3 -m pip install --upgrade pip with:
pip install mkdocs args: .*\\.md$
- name: Deploy docs - name: Build documentation
run: mkdocs gh-deploy uses: docker://decathlon/slate-builder-action:2.0.0
env:
DOC_BASE_FOLDER: docs
ZIP_BUILD: false
- name: Deploy to GitHub Pages
uses: docker://maxheld83/ghpages@v0.2.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_DIR: test-documentation/build/