Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: Add deploy action for gh-pages #54

Merged
merged 1 commit into from
Sep 15, 2024
Merged
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
44 changes: 44 additions & 0 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy GH pages

on:
push:
branches:
- master

env:
USER: root

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Primes
id: cache-plugins
uses: actions/cache@v4
with:
path: .cache
- name: Checkout gh-pages branch
run: |
git branch --delete --force gh-pages || true
git checkout -b gh-pages
- name: Apply deploy config
run: |
echo "" >> mkdocs.yml
echo "site_url: https://isovalent.github.io" >> mkdocs.yml
echo "" >> mkdocs.yml
echo "extra:" >> mkdocs.yml
echo " analytics:" >> mkdocs.yml
echo " provider: google" >> mkdocs.yml
echo " property: G-KVJ1CK539N" >> mkdocs.yml
- name: Build html
run: |
make html PROD=true GH_TOKEN=${{ secrets.GH_TOKEN }}
- name: Deploy to gh-pages
run: |
rm out/.gitignore || true
git add -f out/.
git commit -m "Deploy to gh-pages"
git push -f --set-upstream origin gh-pages


Loading