Skip to content

Commit

Permalink
adds more actions info to presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert van Geest committed Jul 4, 2024
1 parent 95ce4af commit fb39e08
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions slides/slides_git.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,39 @@ flowchart LR

## Quarto and GitHub actions

- GitHub actions: computations running on the GitHub server that can be triggered by e.g. a push, merge, cron job etc.
- GitHub actions: jobs running on the GitHub server that can be triggered by e.g. a push, merge, cron job etc.

- Let GitHub actions render the content - ultimate reproducibility but:

- Need to define your environment (all required R packages etc.)

- Requires knowledge on the GitHub actions syntax and concepts
- Let GitHub actions render the content - ultimate reproducibility

::: aside
More info at the [quarto docs](https://quarto.org/docs/publishing/github-pages.html#github-action)
:::

## GitHub actions

- `.github/workflows/my_workflow.yml`

- For most purposes steps have predefined actions

```yaml
name: Install R

on:
push:
branches: main

jobs:
my_job:
runs_on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.1'
```
## More git
- Spend time to learn it! You'll earn it back quickly 💸
Expand Down

0 comments on commit fb39e08

Please sign in to comment.