Skip to content

Commit

Permalink
chore: rename doc workflows and fix following test
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Jun 28, 2023
1 parent 5eac1b0 commit f6040fd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -23,6 +25,11 @@ jobs:
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Build and deploy
- name: Setup doc deploy
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email github-actions[bot]@users.noreply.github.com
- name: Build and deploy docs to gh-pages
run: |
mike deploy --update-aliases --push --remote origin main latest
mike deploy --update-aliases --push --remote origin main development
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10, v0.1.1a1

jobs:
deploy:
Expand All @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -23,6 +25,11 @@ jobs:
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Build and deploy
- name: Setup doc deploy
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email github-actions[bot]@users.noreply.github.com
- name: Build and deploy docs to gh-pages
run: |
mike deploy --update-aliases --push --remote origin ${{ github.ref }} latest
mike deploy --update-aliases --push --remote origin ${{ github.ref_name }} latest

0 comments on commit f6040fd

Please sign in to comment.