Created
February 21, 2020 10:17
-
-
Save MahdiMajidzadeh/e55b351dd1912e5f37cef726d747de36 to your computer and use it in GitHub Desktop.
some github action
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: 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