Add product type #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Mkdocs | |
on: | |
push: | |
branches: [ master ] | |
tags: [ '*' ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install git+https://${{ secrets.MK_TOKEN }}@github.com/squidfunk/[email protected] | |
- name: Build mkdocs | |
run: mkdocs build | |
- name: Deploy mkdocs | |
if: github.event_name != 'pull_request' | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPO_SLUG: ${{ github.repository }} | |
run: | | |
git config user.name "Kodular Bot" | |
git config user.email "[email protected]" | |
git remote add gh-token "https://KodularCreator:[email protected]/$REPO_SLUG.git" | |
git fetch gh-token && git fetch gh-token gh-pages:gh-pages | |
mkdocs gh-deploy -v --clean --remote-name gh-token |