Skip to content

Commit

Permalink
use netlify method to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidree committed May 29, 2024
1 parent 05c4af9 commit 9a7a76b
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 3,673 deletions.
1 change: 0 additions & 1 deletion .Rprofile

This file was deleted.

68 changes: 34 additions & 34 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::rmarkdown
any::knitr
any::shiny

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: netlify
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# on:
# workflow_dispatch:
# push:
# branches: main
#
# name: Quarto Publish
#
# jobs:
# build-deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
#
# - name: Set up Quarto
# uses: quarto-dev/quarto-actions/setup@v2
#
# - name: Set up R
# uses: r-lib/actions/setup-r@v2
#
# - name: Install packages
# uses: r-lib/actions/setup-r-dependencies@v2
# with:
# packages: |
# any::rmarkdown
# any::knitr
# any::shiny
#
#
# - name: Render and Publish
# uses: quarto-dev/quarto-actions/publish@v2
# with:
# target: netlify
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
2 changes: 2 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[plugins]]
package = "@quarto/netlify-plugin-quarto"
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
"license": "ISC",
"devDependencies": {
"node-sass": "^9.0.0"
},
"dependencies": {
"@quarto/netlify-plugin-quarto": "^0.0.5"
}
}

Loading

0 comments on commit 9a7a76b

Please sign in to comment.