forked from juanfont/headscale
-
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.
- Loading branch information
Showing
4 changed files
with
54 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
push: | ||
branches: | ||
# Main branch for development docs | ||
- main | ||
|
||
# Doc maintenance branches | ||
- doc/[0-9]+.[0-9]+.[0-9]+ | ||
|
||
tags: | ||
# Stable release tags | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- name: Setup cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ github.ref }} | ||
path: .cache | ||
- name: Setup dependencies | ||
run: pip install -r docs/requirements.txt | ||
- name: Configure git | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Deploy development docs | ||
if: github.ref == 'refs/heads/main' | ||
run: mike deploy --push development unstable | ||
- name: Deploy stable docs from doc branches | ||
if: startsWith(github.ref, 'refs/heads/doc/') | ||
run: mike deploy --push ${GITHUB_REF_NAME##*/} | ||
- name: Deploy stable docs from tag | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
# This assumes that only newer tags are pushed | ||
run: mike deploy --push --update-aliases ${GITHUB_REF_NAME#v} stable latest |
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,3 +1,4 @@ | ||
mike~=2.1 | ||
mkdocs-include-markdown-plugin~=7.1 | ||
mkdocs-macros-plugin~=1.3 | ||
mkdocs-material[imaging]~=9.5 | ||
|
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