|
1 | | -# This file was created automatically with `jupyter-book init --gh-pages` 🪄 💚 |
2 | | -# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**. |
3 | | - |
4 | 1 | name: Jupyter Book (via myst) GitHub Pages Deploy |
| 2 | + |
5 | 3 | on: |
6 | 4 | push: |
7 | | - # Runs on pushes targeting the default branch |
8 | 5 | branches: [main] |
9 | 6 | env: |
10 | | - # `BASE_URL` determines, relative to the root of the domain, the URL that your site is served from. |
11 | | - # E.g., if your site lives at `https://mydomain.org/myproject`, set `BASE_URL=/myproject`. |
12 | | - # If, instead, your site lives at the root of the domain, at `https://mydomain.org`, set `BASE_URL=''`. |
13 | 7 | BASE_URL: /${{ github.event.repository.name }} |
14 | | - |
15 | | -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
16 | 8 | permissions: |
17 | 9 | contents: read |
18 | 10 | pages: write |
19 | 11 | id-token: write |
20 | | -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. |
21 | | -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. |
22 | 12 | concurrency: |
23 | 13 | group: 'pages' |
24 | 14 | cancel-in-progress: false |
| 15 | + |
25 | 16 | jobs: |
26 | 17 | deploy: |
27 | 18 | environment: |
28 | 19 | name: github-pages |
29 | 20 | url: ${{ steps.deployment.outputs.page_url }} |
30 | 21 | runs-on: ubuntu-latest |
31 | 22 | steps: |
32 | | - - uses: actions/checkout@v4 |
| 23 | + - uses: actions/checkout@v5 |
33 | 24 | - name: Setup Pages |
34 | | - uses: actions/configure-pages@v3 |
35 | | - - uses: actions/setup-node@v4 |
| 25 | + uses: actions/configure-pages@v5 |
| 26 | + - uses: actions/setup-node@v5 |
36 | 27 | with: |
37 | 28 | node-version: 18.x |
38 | 29 | - name: Install Jupyter Book (via myst) |
39 | 30 | run: npm install -g jupyter-book |
40 | 31 | - name: Build HTML Assets |
41 | 32 | run: jupyter-book build --html |
42 | 33 | - name: Upload artifact |
43 | | - uses: actions/upload-pages-artifact@v3 |
| 34 | + uses: actions/upload-pages-artifact@v4 |
44 | 35 | with: |
45 | 36 | path: './_build/html' |
46 | 37 | - name: Deploy to GitHub Pages |
|
0 commit comments