Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
release:
types:
- published

env:
PYTHON_VERSION: 3.x
Expand Down Expand Up @@ -35,18 +38,15 @@ jobs:

- name: Install Python dependencies
run: |
pip install \
"pillow<10" \
"cairosvg>=2.5" \
"mkdocs-material" \
"mkdocs-material-extensions" \
"mkdocs-git-committers-plugin-2>=1.1.1" \
"mkdocs-git-revision-date-localized-plugin>=1.0" \
"mkdocs-minify-plugin>=0.3" \
"mkdocs-rss-plugin>=1.2" \
"mkdocs-redirects>=1.0"

- name: Deploy site
pip install -r requirements.txt

- if: github.event_name == 'release' && github.event.action == 'published'
name: Deploy site
run: |
mkdocs --version
mkdocs gh-deploy --force
#mkdocs gh-deploy --force
mike --version
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
mike deploy --push --template go-import/redirect.html --update-aliases ${{ github.event.release.tag_name }} latest stacker
mike set-default --push latest
17 changes: 17 additions & 0 deletions go-import/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<noscript>
<meta name="go-import" content="stackerbuild.io/stacker git https://github.com/project-stacker/stacker">
<meta http-equiv="refresh" content="1; url={{href}}" />
</noscript>
<script>
window.location.replace("{{href}}" + window.location.hash);
</script>
</head>
<body>
Redirecting to <a href="{{href}}">{{href}}</a>...
</body>
</html>
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ extra:
link: https://twitter.com/stackerbuild
- icon: fontawesome/brands/slack
link: https://cloud-native.slack.com/archives/C048S8TMBGQ
generator: false
version:
provider: mike
default: latest
plugins:
- search
- minify:
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mkdocs==1.4.2
mkdocs-material==8.5.8
mkdocs-material-extensions==1.1
mkdocs-minify-plugin==0.6.1
mike==1.1.2