Skip to content

Merge pull request #8 from skhrg/flexible_centering #30

Merge pull request #8 from skhrg/flexible_centering

Merge pull request #8 from skhrg/flexible_centering #30

Workflow file for this run

name: Bump version and update docs
on:
push:
branches:
- main
jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
ssh-key: "${{ secrets.GHA_KEY }}"
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
push: false
- name: Push using ssh
run: |
git push origin main --tags
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
update-docs:
needs: bump-version
runs-on: ubuntu-latest
name: "Update docs with mike"
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
ssh-key: "${{ secrets.GHA_KEY }}"
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.10.6
- name: Install Dependencies
run: |
pip install mkdocs-material
pip install pillow cairosvg mike mkdocstrings[python] mkdocs-gen-files mkdocs-literate-nav mkdocs-homepage-copier
- name: Get version
uses: rickstaa/action-get-semver@v1
id: get_semver
with:
bump_level: "minor"
- name: Setup Docs Deploy
run: |
git config --global user.name "Docs Deploy"
git config --global user.email "[email protected]"
- name: Build Docs Website
run: mike deploy --push --update-aliases ${{ steps.get_semver.outputs.current_version }} latest