11on :
22 pull_request :
33 branches : main
4-
54name : Render and Publish
6-
75jobs :
86 build-deploy :
97 runs-on : ubuntu-latest
8+ permissions :
9+ contents : write
1010 steps :
11- - name : Check out repository
11+ - name : Checkout repository
1212 uses : actions/checkout@v4
13-
13+ - name : Install system dependencies
14+ run : |
15+ sudo apt-get install libudunits2-dev \
16+ libgdal-dev \
17+ libgeos-dev \
18+ libproj-dev
19+ - uses : r-lib/actions/setup-r@v2
20+ - name : Install R Dependencies
21+ uses : r-lib/actions/setup-renv@v2
22+ with :
23+ cache-version : 1
1424 - name : Install python
1525 uses : actions/setup-python@v5
1626 with :
1727 python-version : ' 3.10'
1828 cache : ' pip' # caching pip dependencies
1929
20- - name : Install python Dependencies
30+ - name : Install python dependencies
2131 run : |
2232 pip install pybind11
2333 pip install wheel setuptools pip --upgrade
2434 pip install -r requirements.txt
25-
2635 - name : Download NLP requirements
2736 run : ./download_nlp_reqs.sh
28-
2937 - name : Set up Quarto
3038 uses : quarto-dev/quarto-actions/setup@v2
3139 with :
@@ -35,41 +43,24 @@ jobs:
3543 # version: 0.9.600
3644
3745 # add software dependencies here
38-
3946 # To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
4047 # the appropriate block below
4148
42- - name : Render
43- uses : quarto-dev/quarto-actions/render@v2
44-
45- - name : Install npm
46- uses : actions/setup-node@v2
47- with :
48- node-version : ' 14'
49-
50- # - name: Deploy to Netlify
51- # # NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID added in the repo's secrets
52- # env:
49+ # - name: Publish to Netlify (and render)
50+ # uses: quarto-dev/quarto-actions/publish@v2
51+ # with:
52+ # target: netlify
5353 # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
54- # NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
55- # BRANCHE_REF: ${{ github.event.pull_request.head.ref }}
56- # run: |
57- # npm init -y
58- # npm install --unsafe-perm=true netlify-cli -g
59- # netlify init
60- # netlify deploy --alias=${BRANCHE_REF} --dir="_site" --message "Preview deploy"
6154
6255 # - name: Publish to RStudio Connect (and render)
6356 # uses: quarto-dev/quarto-actions/publish@v2
6457 # with:
6558 # target: connect
6659 # CONNECT_SERVER: enter-the-server-url-here
6760 # CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
68-
6961 - name : Publish to GitHub Pages (and render)
7062 uses : quarto-dev/quarto-actions/publish@v2
7163 with :
7264 target : gh-pages
7365 env :
74- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
75-
66+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
0 commit comments