Skip to content

ci: setup workflow for automatic mike deployments #26

ci: setup workflow for automatic mike deployments

ci: setup workflow for automatic mike deployments #26

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:
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 }}"

Check failure on line 36 in .github/workflows/bumpversion.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/bumpversion.yaml

Invalid workflow file

You have an error in your yaml syntax on line 36
- - uses: actions/setup-python@v4
with:
python-version: 3.10.6
- name: Install Dependencies
run: |
pip install mkdocs-material
pip install pillow cairosvg mike
- 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