Add files via upload #18
This file contains 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: Binder Build | |
on: | |
push: | |
branches: | |
- main # Adjust this to your default branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
pip install jupyter-repo2docker | |
- name: Build Binder image | |
env: | |
OPENAI_API_KEY: ${{ secrets.JUPYTER_AI_API_KEY }} | |
run: | | |
jupyter-repo2docker --no-run --user-name=jovyan --user-id=1000 --image-name=mybinder . \ | |
&& docker run -e OPENAI_API_KEY=${{ secrets.JUPYTER_AI_API_KEY }} mybinder /bin/bash -c "source ~/.bashrc && jupyter notebook" |