-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#27 - Remove CNAME. Improve docs-publish.yaml workflow. Refactor them…
…e.features in mkdocs.yml.
- Loading branch information
1 parent
589ef66
commit fd37027
Showing
4 changed files
with
26 additions
and
34 deletions.
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,18 +1,20 @@ | ||
name: Build and publish documentation to GitHub Pages | ||
name: Build, validate, publish, version documentation for GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- feature/* | ||
- master | ||
# tags: | ||
# - 'v[0-9]+.[0-9]+.[0-9]+' | ||
- develop | ||
- feature/* | ||
- release/* | ||
- hotfix/* | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build: | ||
publish: | ||
name: Build, validate, publish, version documentation for GitHub Pages | ||
runs-on: ubuntu-22.04 | ||
# container: | ||
# image: python:3.9 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -24,24 +26,16 @@ jobs: | |
|
||
- name: Build, validate documentation using MkDocs | ||
run: | | ||
# todo check if it is needed | ||
# git config --global --add safe.directory /__w/rmk/rmk | ||
mkdocs build --verbose --clean --strict | ||
rm -r site/ | ||
- name: Configure Git | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
id: git-configuration | ||
- name: Build, publish, version documentation using Mike (only for stable tags) | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
echo "Configure Git user.name and user.email." | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
# todo remove tag hardcode used for tests | ||
# echo tag=${GITHUB_REF#refs/tags/} >> "${GITHUB_OUTPUT}" | ||
echo tag=v0.43.0 >> "${GITHUB_OUTPUT}" | ||
- name: Build, publish, version documentation using Mike | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
mike deploy --update-aliases --push --rebase ${{ steps.git-configuration.outputs.tag }} latest | ||
VERSION=${GITHUB_REF#refs/tags/} | ||
mike deploy --update-aliases --push --rebase "${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
This file was deleted.
Oops, something went wrong.
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