-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin_public/main' into release/v0.2rc
- Loading branch information
Showing
7 changed files
with
130 additions
and
228 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 |
---|---|---|
|
@@ -180,20 +180,38 @@ jobs: | |
- name: Install dependicies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Setup docs deploy | ||
run: | | ||
git config --global user.name "Docs Deployer" | ||
git config --global user.email [email protected] | ||
echo "TAGS=$(git log --tags --simplify-by-decoration --pretty='format:%d' --since=2024-04-30 | sed '/^$/d' | cut -d ':' -f 2 | cut -d ')' -f 1 | tac | tr '\n' ' ')" >> $GITHUB_ENV | ||
- name: Build docs | ||
run: mkdocs build | ||
run: | | ||
for tag in ${{ env.TAGS }}; do | ||
echo "### CHECKOUT TO ${tag} ###" | ||
git checkout $tag | ||
if [[ "$tag" == *"rc"* || "$tag" == *"dev"* || "$tag" == *"pre"* ]]; then | ||
mike deploy $tag | ||
else | ||
mike deploy --update-aliases $tag latest | ||
fi | ||
done | ||
- name: Create docs directory | ||
run: sudo mkdir -p ${{ secrets.DOCS_DEPLOY_DIR }} | ||
- name: Set latest version as default | ||
run: mike set-default latest | ||
|
||
- name: Move html files to docs directory | ||
run: sudo mv site ${{ secrets.DOCS_DEPLOY_DIR }}/html-${{ github.ref_name}} | ||
- name: Change branch to get html files | ||
run: git checkout gh-pages | ||
|
||
- name: Remove old folder | ||
run: sudo rm -rf ${{ secrets.DOCS_DEPLOY_DIR }}/html | ||
|
||
- name: Remove old symlink | ||
run: sudo unlink ${{ secrets.DOCS_DEPLOY_DIR }}/html | ||
- name: Create docs directory | ||
run: sudo mkdir -p ${{ secrets.DOCS_DEPLOY_DIR }}/html | ||
|
||
- name: Create new symlink | ||
run: sudo ln -s ${{ secrets.DOCS_DEPLOY_DIR }}/html-${{ github.ref_name}} ${{ secrets.DOCS_DEPLOY_DIR }}/html | ||
- name: Move html files to docs directory | ||
run: sudo cp -r * ${{ secrets.DOCS_DEPLOY_DIR }}/html | ||
|
||
- name: Restart web service | ||
run: sudo systemctl restart nginx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block announce %} | ||
Version 0.1.12 is <a href="https://github.com/GreenmaskIO/greenmask/releases/tag/v0.1.11">released</a> | ||
Version 0.1.13 is <a href="https://github.com/GreenmaskIO/greenmask/releases/tag/v0.1.13">released</a> | ||
{% endblock %} | ||
|
||
{% block outdated %} | ||
You're not viewing the latest version. | ||
<a href="{{ '../' ~ base_url }}"> | ||
<strong>Click here to go to latest.</strong> | ||
</a> | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Greenmask 0.1.13 | ||
|
||
This release introduces only improvements in documentation deployment. The core greenmask utility does not contain any changes. | ||
|
||
## Changes | ||
|
||
* Added documentation deployment with versioning | ||
|
||
## Assets | ||
|
||
To download the Greenmask binary compatible with your system, see | ||
the [release's assets list](https://github.com/GreenmaskIO/greenmask/releases/tag/v0.1.13). |
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
Oops, something went wrong.