Skip to content

Commit

Permalink
ci: setup workflow for automatic mike deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
skhrg committed Jan 19, 2024
1 parent a909b4d commit bc970a8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/bumpversion.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump version
name: Bump version and update docs

on:
push:
Expand All @@ -25,3 +25,32 @@ jobs:
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
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
site_name: Megham
site_url: https://skhrg.github.io/megham/
theme: material
plugins:
- search
Expand Down

0 comments on commit bc970a8

Please sign in to comment.