Agregar imágenes y hashing #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 tokenizers | |
run: | | |
install.packages("tokenizers") | |
shell: Rscript {0} | |
- 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 |