Skip to content

Commit fca4ed5

Browse files
authored
Create write-manifest.yaml
1 parent 3e3713c commit fca4ed5

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Write manifest
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "mapSpain_RMadrid/**"
9+
- "mapSpain_article/**"
10+
- "mapSpain_slides/**"
11+
- ".github/workflows/write-manifest.yaml"
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
write-manifest:
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
dir:
23+
- mapSpain_RMadrid
24+
- mapSpain_article
25+
- mapSpain_slides
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- name: Install rsconnect
35+
run: |
36+
install.packages("rsconnect")
37+
shell: Rscript {0}
38+
39+
- name: Write manifest.json
40+
run: |
41+
rsconnect::writeManifest("${{ matrix.dir }}")
42+
shell: Rscript {0}
43+
44+
- name: Commit manifest
45+
uses: stefanzweifel/git-auto-commit-action@v5
46+
with:
47+
commit_message: "Update rsconnect manifests"
48+
file_pattern: "*/manifest.json"

0 commit comments

Comments
 (0)