Skip to content

Commit

Permalink
ci: push pages to docs repository
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wanzenböck <[email protected]>
  • Loading branch information
WanzenBug committed Nov 28, 2024
1 parent 93aca49 commit 65124af
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Configure Git Credentials
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_REPO_KEY }}
- name: Configure Git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
# Deployed docs are in another repo for nice URLs
git remote add gh-pages [email protected]:piraeusdatastore/docs.git
git fetch gh-pages gh-pages --depth=1
- uses: actions/setup-python@v5
with:
python-version: 3.x
Expand All @@ -52,7 +58,7 @@ jobs:
- run: pip install mkdocs-material[imaging] mike
- name: Deploy latest docs
if: ${{ github.ref_type == 'branch' }}
run: mike deploy -u -p v2 latest
run: mike deploy -u -r gh-pages -p v2 latest
- name: Deploy release docs
if: ${{ github.ref_type == 'tag' }}
run: mike deploy -u -p ${{ github.ref_name }} stable
run: mike deploy -u -r gh-pages -p ${{ github.ref_name }} stable

0 comments on commit 65124af

Please sign in to comment.