Skip to content

Instantly share code, notes, and snippets.

@MahdiMajidzadeh
Created February 21, 2020 10:17
Show Gist options
  • Save MahdiMajidzadeh/e55b351dd1912e5f37cef726d747de36 to your computer and use it in GitHub Desktop.
Save MahdiMajidzadeh/e55b351dd1912e5f37cef726d747de36 to your computer and use it in GitHub Desktop.
some github action
name: MkDocs Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs
pip install mkdocs-material
pip install mkdocs-minify-plugin
- name: Build
run: |
mkdocs build
- name: Commit builds
run: |
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git commit -am "builds"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment