Skip to content

Commit a4c665f

Browse files
authored
Merge pull request #3 from posit-dev/ci-fix-gh-pages
ci: change _book to _site
2 parents 2a8a4cd + fd813b3 commit a4c665f

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
name: Build and Deploy
22
on: [push, pull_request]
33
permissions:
4-
contents: write
4+
contents: write
55
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
1616

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"
2525

26-
- name: Install the project
27-
run: uv sync --all-extras --dev
26+
- name: Install the project
27+
run: uv sync --all-extras --dev
2828

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
3333

34-
- name: Build docs
35-
run: |
36-
uv run quarto render
34+
- name: Build docs
35+
run: |
36+
uv run quarto render
3737
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
4545

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

Comments
 (0)