diff --git a/.github/workflows/buildAndDeployWebsite.yml b/.github/workflows/buildAndDeployWebsite.yml index 993ad385a2e..94db17f7434 100644 --- a/.github/workflows/buildAndDeployWebsite.yml +++ b/.github/workflows/buildAndDeployWebsite.yml @@ -13,6 +13,10 @@ jobs: uses: actions/checkout@v3 with: token: ${{ secrets.HOW_BAD_IS_MY_BATCH_ACCESS_TOKEN }} + - name: Configuring git + run: | + git config --global user.email "Knoll_Frank@web.de" + git config --global user.name "FK" - name: Installing dependencies uses: conda-incubator/setup-miniconda@v2 with: @@ -26,18 +30,27 @@ jobs: sudo apt install google-chrome-stable pip install selenium webdriver-manager pip install pycountry - - name: Executing HowBadIsMyBatch.ipynb + - name: Installing ipython kernel shell: bash -el {0} run: | ipython kernel install --user --name=howbadismybatch-venv-kernel + - name: Executing HowBadIsMyBatch.ipynb + shell: bash -el {0} + run: | cd src jupyter nbconvert --ExecutePreprocessor.kernel_name="howbadismybatch-venv-kernel" --to notebook --allow-errors --execute HowBadIsMyBatch.ipynb jupyter nbconvert --to html HowBadIsMyBatch.nbconvert.ipynb - - name: Pushing changes to GitHub Pages - shell: bash -el {0} - run: | - git config --global user.email "Knoll_Frank@web.de" - git config --global user.name "FK" git add -A git commit -m "updating data for batch codes" + - name: Executing Intensivstationen.ipynb + shell: bash -el {0} + run: | + src/intensivstationen + jupyter nbconvert --ExecutePreprocessor.kernel_name="howbadismybatch-venv-kernel" --to notebook --allow-errors --execute Intensivstationen.ipynb + jupyter nbconvert --to html Intensivstationen.nbconvert.ipynb + git add -A + git commit -m "updating data for Intensivstationen" + - name: Pushing changes + shell: bash -el {0} + run: | git push