Skip to content

Commit

Permalink
add documentation workflow and update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sascha-kirch committed Oct 19, 2023
1 parent eb8f500 commit 4493abc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Documentation

on:
release:
types: [created]
pull_request:
types:
- "closed"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r environment/requirements-dev.txt
pip install -e .
- name: Deploy Develop Documentation
if: $ {{ github.event_name == 'pull_request' && github.event.pull_request.merged }}
run: mike deploy --push develop
- name: Deploy Release Documentation
if: ${{ github.event_name == 'release' }}
run: mike deploy --push --update-aliases ${{ github.event.release.tag_name }} latest
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: ci-test

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

Expand Down

0 comments on commit 4493abc

Please sign in to comment.