diff --git a/.github/workflows/rencontresR2021.yml b/.github/workflows/rencontresR2021.yml new file mode 100644 index 0000000..b0edea2 --- /dev/null +++ b/.github/workflows/rencontresR2021.yml @@ -0,0 +1,51 @@ +name: Slides des rencontres R 2021 + +on: + push: + tags: + - 'v*.*.rencontresR2021' + branches: + - rencontresR2021 + + +jobs: + xaringan-presentations: + if: "!contains(github.event.commits[0].message, '[skip ci]')" + runs-on: ubuntu-latest + container: inseefrlab/utilitr:latest + steps: + - name: Checkout Repository + env: + GITHUB_PAT: ${{ secrets.PAT }} + uses: actions/checkout@master + - name: Install Dependencies + run: | + Rscript -e "install.packages(c('remotes'))" + Rscript -e "remotes::install_deps(dependencies = TRUE)" + - name: Render + run: | + mkdir -p public + Rscript -e 'rmarkdown::render("cutii2021.Rmd")' + Rscript -e "file.copy(here::here('resources'), here::here('public'), recursive = TRUE)" + Rscript -e "file.copy(here::here('css'), here::here('public'), recursive = TRUE)" + mv cutii2021.html public/index.html + - uses: actions/upload-artifact@v2 + with: + name: Slides + path: public/ + retention-days: 3 + - name: Install npm + if: ${{ github.repository == 'inseefrlab/utilitr-presentation' }} + uses: actions/setup-node@v1 + - name: Deploy to Netlify + if: ${{ github.repository == 'inseefrlab/utilitr-presentation' }} + # NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID added in the repo's secrets + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + run: | + npm install --unsafe-perm=true netlify-cli -g + netlify init + netlify deploy --alias=cutii2021 --dir="public" --message "Deploy cutii 2021" + + diff --git a/.github/workflows/cutii.yml b/.github/workflows/worfklows_ponctuels/cutii.yml similarity index 100% rename from .github/workflows/cutii.yml rename to .github/workflows/worfklows_ponctuels/cutii.yml diff --git a/index.Rmd b/index.Rmd index 6897681..b9b463c 100644 --- a/index.Rmd +++ b/index.Rmd @@ -32,8 +32,10 @@ output: - [Présentation de la documentation `utilitR`](./documentation.html) - [Présentation de l'approche collaborative](./colaboratif.html) -
Présentations passées +
Présentations passées: +* [Rencontres R 2021 [2021-07-13]](./archives/rencontresR2021.html) +* [Cutii [2021-06-30]](./archives/cutii2021.html) * [GitiSSP [2021-06-11]](./archives/gitissp.html)