|
1 |
| - |
2 |
| -name: deployment |
| 1 | +name: deploy-book |
3 | 2 | on:
|
4 | 3 | workflow_dispatch:
|
5 | 4 |
|
6 | 5 | jobs:
|
7 | 6 | deploy:
|
8 |
| - runs-on: ubuntu-latest |
| 7 | + runs-on: |
| 8 | + group: LargerInstance |
| 9 | + container: |
| 10 | + image: rcpeene/openscope_databook:latest |
9 | 11 |
|
10 | 12 | steps:
|
11 | 13 | - uses: actions/checkout@v3
|
12 | 14 | with:
|
13 | 15 | fetch-depth: 0
|
14 | 16 | ref: main
|
| 17 | + fetch-tags: true |
15 | 18 |
|
16 |
| - - name: Installing python |
17 |
| - run: | |
18 |
| - sudo apt-get update |
19 |
| - sudo apt install python3.12 |
20 |
| - sudo apt-get install build-essential |
21 |
| -
|
22 |
| - - name: Installing package without PEP 517 |
23 |
| - run: python3.12 -m pip install --no-use-pep517 -e . |
24 |
| - |
25 |
| - - name: Upgrading pip |
26 |
| - run: pip install --upgrade pip |
27 |
| - |
28 |
| - - name: Installing dependencies |
29 |
| - run: | |
30 |
| - pip install --upgrade pip setuptools wheel build |
31 |
| - pip install markupsafe==2.0.1 --no-cache-dir |
| 19 | + - name: Set up Python |
| 20 | + uses: actions/setup-python@v5 |
| 21 | + with: |
| 22 | + python-version: '3.10.11' |
32 | 23 |
|
33 |
| - - name: Installing package |
| 24 | + - name: Install your package |
34 | 25 | run: pip install -e .
|
35 | 26 |
|
36 |
| - - name: Installing Jupyter book |
37 |
| - run: pip install -U jupyter-book |
38 |
| - |
39 |
| - - name: Printing log |
40 |
| - run: git status |
41 |
| - |
42 |
| - - name: Printing shortlog |
43 |
| - run: git log | git shortlog -sn |
| 27 | + - name: Install build requirements |
| 28 | + run: | |
| 29 | + pip install -r requirements.txt |
| 30 | + pip install markupsafe==2.0.1 |
| 31 | + pip install -U jupyter-book |
44 | 32 |
|
45 |
| - - name: Build Jupyter book |
| 33 | + - name: Build Jupyter Book |
46 | 34 | run: |
|
47 | 35 | jupyter-book clean ./docs
|
48 | 36 | jupyter-book build ./docs
|
49 |
| - |
50 |
| - - name: Deploy book to GitHub pages |
| 37 | +
|
| 38 | + - name: Deploy to GitHub Pages |
51 | 39 |
|
52 | 40 | with:
|
53 | 41 | github_token: ${{ secrets.GITHUB_TOKEN }}
|
54 | 42 | publish_dir: ./docs/_build/html
|
55 |
| - |
0 commit comments