-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: setup workflow for automatic mike deployments
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
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
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: | ||
|
@@ -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 |
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
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 | ||
|