Skip to content

Commit 1c216b3

Browse files
committed
try
1 parent 2edad4a commit 1c216b3

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

.github/workflows/publish.yml

+23-20
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1+
name: Deploy Quarto Book
2+
13
on:
2-
workflow_dispatch:
34
push:
4-
branches: main
5-
6-
name: Quarto Publish
5+
branches:
6+
- main # Change to your default branch if different
77

88
jobs:
99
build-deploy:
1010
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
11+
1312
steps:
14-
- name: Check out repository
15-
uses: actions/checkout@v4
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Quarto
17+
uses: quarto-dev/quarto-actions/setup@v2
18+
with:
19+
version: latest
1620

17-
- name: Setting up R
18-
uses: r-lib/actions/setup-r@v2
21+
- name: Install R
22+
uses: r-lib/actions/setup-r@v2
1923

20-
- name: Installing and activating renv
21-
uses: r-lib/actions/setup-renv@v2
24+
- name: Install R packages
25+
run: |
26+
R -e "install.packages('quarto')"
2227
23-
- name: Set up Quarto
24-
uses: quarto-dev/quarto-actions/setup@v2
28+
- name: Render Quarto book
29+
run: quarto render
2530

26-
- name: Render and Publish
27-
uses: quarto-dev/quarto-actions/publish@v2
28-
with:
29-
target: gh-pages
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)