Skip to content

Commit

Permalink
Use requirements.txt in github action (#11)
Browse files Browse the repository at this point in the history
* Use requirements.txt in github action

* Add possibility to run workflow manually

* Run build also on pull_requests

* deploy only when on main branch
  • Loading branch information
fjp authored Jul 3, 2024
1 parent 6b291dd commit 04ec5b5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Documentation CI
on:
workflow_dispatch:
push:
branches:
- main
- feature/hardware-setup
pull_request:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -27,7 +30,9 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install mkdocs-jupyter
- run: pip install mkdocs-macros-plugin
- run: mkdocs gh-deploy --force
- run: pip install -r requirements.txt
- name: build documentation
run: mkdocs build
- name: deploy documentation
if: ${{ github.ref == 'main' }}
run: mkdocs gh-deploy --force

0 comments on commit 04ec5b5

Please sign in to comment.