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-
29- - name : Setup R
30- uses : r-lib/actions/setup-r@v2
31-
3237 - name : Set up Quarto
3338 uses : quarto-dev/quarto-actions/setup@v2
3439 with :
@@ -38,41 +43,24 @@ jobs:
3843 # version: 0.9.600
3944
4045 # add software dependencies here
41-
4246 # To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
4347 # the appropriate block below
4448
45- - name : Render
46- uses : quarto-dev/quarto-actions/render@v2
47-
48- - name : Install npm
49- uses : actions/setup-node@v2
50- with :
51- node-version : ' 14'
52-
53- # - name: Deploy to Netlify
54- # # NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID added in the repo's secrets
55- # env:
49+ # - name: Publish to Netlify (and render)
50+ # uses: quarto-dev/quarto-actions/publish@v2
51+ # with:
52+ # target: netlify
5653 # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
57- # NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
58- # BRANCHE_REF: ${{ github.event.pull_request.head.ref }}
59- # run: |
60- # npm init -y
61- # npm install --unsafe-perm=true netlify-cli -g
62- # netlify init
63- # netlify deploy --alias=${BRANCHE_REF} --dir="_site" --message "Preview deploy"
6454
6555 # - name: Publish to RStudio Connect (and render)
6656 # uses: quarto-dev/quarto-actions/publish@v2
6757 # with:
6858 # target: connect
6959 # CONNECT_SERVER: enter-the-server-url-here
7060 # CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
71-
7261 - name : Publish to GitHub Pages (and render)
7362 uses : quarto-dev/quarto-actions/publish@v2
7463 with :
7564 target : gh-pages
7665 env :
77- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
78-
66+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
0 commit comments