diff --git a/.github/workflows/deploy_book.yml b/.github/workflows/deploy_book.yml new file mode 100644 index 0000000..0c9a791 --- /dev/null +++ b/.github/workflows/deploy_book.yml @@ -0,0 +1,39 @@ +name: deploy-book + +on: + push: + branches: + - '*' + - '*/*' + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: conda env create + run: | + source '/usr/share/miniconda/etc/profile.d/conda.sh' + conda create -n jbook -c conda-forge jupyter-book python=3.11 + + - name: Build the book + run: | + source '/usr/share/miniconda/etc/profile.d/conda.sh' + conda activate jbook + jupyter-book build . + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: '_build/html/' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..2334eb3 --- /dev/null +++ b/_config.yml @@ -0,0 +1,2 @@ +title: Python Analysis Lessons +author: CSampson \ No newline at end of file diff --git a/_toc.yml b/_toc.yml new file mode 100644 index 0000000..4730e62 --- /dev/null +++ b/_toc.yml @@ -0,0 +1,2 @@ +format: jb-book +root: Lesson 1 \ No newline at end of file