Merge pull request #23 from beekill95/dependabot/pip/fonttools-4.43.0 #52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Notebooks | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
fetch-depth: 0 | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M')" | |
- name: Merge main -> publish | |
run: | | |
git fetch | |
git checkout publish | |
git config user.name "Github Actions Bot" | |
git config user.email "" | |
git merge main | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Set up Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Add conda to system path | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Install dependencies | |
run: | | |
conda env update --file environment.yml --name base | |
poetry config virtualenvs.create false | |
poetry install | |
- name: Publish notebooks to html | |
run: | | |
mkdir -p docs | |
doit publish | |
- name: Publish | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Build, publish notebooks ${{ steps.date.outputs.date }} and store doit db." | |
branch: publish | |
file_pattern: docs/* notebooks/* | |
add_options: '-f' |