Skip to content

release actions

release actions #1

name: Build MKDocs website
on:
push:
branches: ["devel"]
jobs:
build-and-deploy:
if: ${{ contains(github.event.head_commit.message, 'Build website') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install mkdocs
- name: Build MkDocs
run: mkdocs build
- name: Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}