|
1 | 1 | name: Build and Deploy |
2 | 2 | on: [push, pull_request] |
3 | 3 | permissions: |
4 | | - contents: write |
| 4 | + contents: write |
5 | 5 | jobs: |
6 | | - build-and-deploy: |
7 | | - concurrency: ci-${{ github.ref }} |
8 | | - runs-on: ubuntu-latest |
9 | | - permissions: |
10 | | - pull-requests: write |
11 | | - actions: write |
12 | | - contents: write |
13 | | - steps: |
14 | | - - name: Checkout 🛎️ |
15 | | - uses: actions/checkout@v4 |
| 6 | + build-and-deploy: |
| 7 | + concurrency: ci-${{ github.ref }} |
| 8 | + runs-on: ubuntu-latest |
| 9 | + permissions: |
| 10 | + pull-requests: write |
| 11 | + actions: write |
| 12 | + contents: write |
| 13 | + steps: |
| 14 | + - name: Checkout 🛎️ |
| 15 | + uses: actions/checkout@v4 |
16 | 16 |
|
17 | | - # python ---- |
18 | | - - uses: actions/checkout@v2 |
19 | | - - name: Install uv |
20 | | - uses: astral-sh/setup-uv@v5 |
21 | | - - name: "Set up Python" |
22 | | - uses: actions/setup-python@v5 |
23 | | - with: |
24 | | - python-version-file: ".python-version" |
| 17 | + # python ---- |
| 18 | + - uses: actions/checkout@v2 |
| 19 | + - name: Install uv |
| 20 | + uses: astral-sh/setup-uv@v5 |
| 21 | + - name: "Set up Python" |
| 22 | + uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version-file: ".python-version" |
25 | 25 |
|
26 | | - - name: Install the project |
27 | | - run: uv sync --all-extras --dev |
| 26 | + - name: Install the project |
| 27 | + run: uv sync --all-extras --dev |
28 | 28 |
|
29 | | - # quarto docs build ---- |
30 | | - - uses: quarto-dev/quarto-actions/setup@v2 |
31 | | - with: |
32 | | - tinytex: true |
| 29 | + # quarto docs build ---- |
| 30 | + - uses: quarto-dev/quarto-actions/setup@v2 |
| 31 | + with: |
| 32 | + tinytex: true |
33 | 33 |
|
34 | | - - name: Build docs |
35 | | - run: | |
36 | | - uv run quarto render |
| 34 | + - name: Build docs |
| 35 | + run: | |
| 36 | + uv run quarto render |
37 | 37 |
|
38 | | - - name: Deploy |
39 | | - uses: JamesIves/github-pages-deploy-action@v4 |
40 | | - if: ${{ github.ref == 'refs/heads/main' }} |
41 | | - with: |
42 | | - force: false |
43 | | - folder: _book |
44 | | - clean-exclude: pr-preview |
| 38 | + - name: Deploy |
| 39 | + uses: JamesIves/github-pages-deploy-action@v4 |
| 40 | + if: ${{ github.ref == 'refs/heads/main' }} |
| 41 | + with: |
| 42 | + force: false |
| 43 | + folder: _site |
| 44 | + clean-exclude: pr-preview |
45 | 45 |
|
46 | | - - name: Deploy (preview) |
47 | | - uses: rossjrw/pr-preview-action@v1 |
48 | | - # if in a PR |
49 | | - if: ${{ github.event_name == 'pull_request' }} |
50 | | - with: |
51 | | - source-dir: _book |
| 46 | + - name: Deploy (preview) |
| 47 | + uses: rossjrw/pr-preview-action@v1 |
| 48 | + # if in a PR |
| 49 | + if: ${{ github.event_name == 'pull_request' }} |
| 50 | + with: |
| 51 | + source-dir: _site |
0 commit comments