-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 1.32 KB
/
notas-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Docker Image CI
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-image:
runs-on: ubuntu-latest
container: felipexgonzalez/am-2023-amd64:latest
steps:
- name: Install probably
run: |
remotes::install_github("https://github.com/tidymodels/probably/", upgrade = "always", force = TRUE)
shell: Rscript {0}
- name: install wordvectors
run: |
remotes::install_github("bmschmidt/wordVectors", dependencies = TRUE, upgrade = "always", force = TRUE)
- name: Install others
run: |
install.packages(c("discrim"))
shell: Rscript {0}
- uses: actions/checkout@v2
- name: Render book
# Add any command line argument needed
run: |
quarto render notas/ --to html
- name: install rsync
run: |
apt update && apt install -y rsync
- name: Deploy 🚀
# only deploy when push to main
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
# The branch the action should deploy to.
branch: gh-pages
# The folder the action should deploy. Adapt if you changed in Quarto config
folder: notas/_book