Skip to content

Commit

Permalink
Fix CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiter committed Jun 1, 2022
1 parent d6c29d7 commit e26caa0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,48 +41,46 @@ jobs:
run: ./integration-tests/run.sh

publish_mkdocs_latest:
if: github.event_name == 'push' and contains(github.ref, 'refs/tags/')
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
env:
GIT_COMMITTER_NAME: mkdocs-mike
GIT_COMMITTER_EMAIL: [email protected]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.10
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs singledispatch mkdocs-material mike
- name: Deploy documentation with mike
run: mike deploy ${{github.ref_name}} latest
- name: Push gh-pages branch
run: git push origin gh-pages:gh-pages
run: |
git config user.name mkdocs-mike
git config user.email [email protected]
git fetch origin gh-pages
mike deploy -p --rebase ${{github.ref_name}} latest
publish_mkdocs_wip:
if: github.event_name == 'push' and contains(github.ref, 'main')
if: github.event_name == 'push' && contains(github.ref, 'main')
runs-on: ubuntu-latest
needs: build
env:
GIT_COMMITTER_NAME: mkdocs-mike
GIT_COMMITTER_EMAIL: [email protected]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.10
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs singledispatch mkdocs-material mike
- name: Deploy documentation with mike
run: mike deploy wip
- name: Push gh-pages branch
run: git push origin gh-pages:gh-pages
run: |
git config user.name mkdocs-mike
git config user.email [email protected]
git fetch origin gh-pages
mike deploy -p --rebase wip
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdocs
singledispatch
mkdocs-material
mike

0 comments on commit e26caa0

Please sign in to comment.