Skip to content

Commit 7647d6e

Browse files
author
antocg
committed
Update deploy workflows
update version of actions
1 parent e9a1174 commit 7647d6e

File tree

4 files changed

+56
-57
lines changed

4 files changed

+56
-57
lines changed

.github/workflows/deploy_book-en.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
on:
22
push:
3-
branches:
4-
- main
5-
paths:
6-
- book-en/**
7-
- .github/workflows/deploy_book-en.yml
3+
branches:
4+
- main
5+
paths:
6+
- book-en/**
7+
- .github/workflows/deploy_book-en.yml
88

99
repository_dispatch:
1010
types: [pong_book]
@@ -37,21 +37,21 @@ jobs:
3737

3838
steps:
3939
- name: 🛎️ Checkout repository
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141

4242
- name: 💻 Setup R
43-
uses: r-lib/actions/setup-r@v1
43+
uses: r-lib/actions/setup-r@v2
4444
with:
45-
r-version: 4.0.3
45+
r-version: 4.2.2
4646

4747
- name: 💾 Cache R packages
48-
uses: actions/cache@v2 # Must be v2 so it accepts the GITHUB_REF from the repository_dispatch
48+
uses: actions/cache@v3
4949
with:
5050
path: ${{ env.R_LIBS_USER }}
5151
key: r-${{ hashFiles('DESCRIPTION') }}
5252

5353
- name: 💻 Install pandoc and pandoc citeproc
54-
uses: r-lib/actions/setup-pandoc@v1
54+
uses: r-lib/actions/setup-pandoc@v2
5555

5656
- name: 💻 Install R packages and dependencies if needed
5757
run: |
@@ -91,7 +91,7 @@ jobs:
9191
file.copy("workshop08-script-en.R", "_book/")'
9292
9393
- name: 🔺 Upload artifact containing the book
94-
uses: actions/upload-artifact@v1
94+
uses: actions/upload-artifact@v3
9595
with:
9696
name: book-en
9797
path: book-en/
@@ -107,24 +107,23 @@ jobs:
107107

108108
steps:
109109
- name: 🛎️ Checkout again
110-
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
110+
uses: actions/checkout@v3
111111
with:
112112
persist-credentials: false
113113

114114
- name: 🔻 Download artifact containing the book
115-
uses: actions/download-artifact@v1
115+
uses: actions/download-artifact@v3
116116
with:
117117
# Artifact name
118118
name: book-en # optional
119119
# Destination path
120120
path: book-en/ # optional
121121

122122
- name: 💎 Deploy to GitHub Pages
123-
uses: JamesIves/github-pages-deploy-action@4.1.4
123+
uses: JamesIves/github-pages-deploy-action@v4
124124
with:
125125
token: ${{ secrets.ACCESS_TOKEN }}
126126
branch: gh-pages # The branch the action should deploy to.
127127
folder: book-en/_book/
128128
target-folder: book-en # The folder the action should deploy
129129
clean: true
130-

.github/workflows/deploy_book-fr.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
on:
22
push:
3-
branches:
4-
- main
5-
paths:
6-
- book-fr/**
7-
- .github/workflows/deploy_book-fr.yml
3+
branches:
4+
- main
5+
paths:
6+
- book-fr/**
7+
- .github/workflows/deploy_book-fr.yml
88

99
repository_dispatch:
1010
types: [pong_book]
@@ -37,21 +37,21 @@ jobs:
3737

3838
steps:
3939
- name: 🛎️ Checkout repository
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141

4242
- name: 💻 Setup R
43-
uses: r-lib/actions/setup-r@v1
43+
uses: r-lib/actions/setup-r@v2
4444
with:
45-
r-version: 4.0.3
45+
r-version: 4.2.2
4646

4747
- name: 💾 Cache R packages
48-
uses: actions/cache@v2 # Must be v2 so it accepts the GITHUB_REF from the repository_dispatch
48+
uses: actions/cache@v3
4949
with:
5050
path: ${{ env.R_LIBS_USER }}
5151
key: r-${{ hashFiles('DESCRIPTION') }}
5252

5353
- name: 💻 Install pandoc and pandoc citeproc
54-
uses: r-lib/actions/setup-pandoc@v1
54+
uses: r-lib/actions/setup-pandoc@v2
5555

5656
- name: 💻 Install R packages and dependencies if needed
5757
run: |
@@ -91,7 +91,7 @@ jobs:
9191
file.copy("workshop08-script-fr.R", "_book/")'
9292
9393
- name: 🔺 Upload artifact containing the book
94-
uses: actions/upload-artifact@v1
94+
uses: actions/upload-artifact@v3
9595
with:
9696
name: book-fr
9797
path: book-fr/
@@ -107,20 +107,20 @@ jobs:
107107

108108
steps:
109109
- name: 🛎️ Checkout again
110-
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
110+
uses: actions/checkout@v3
111111
with:
112112
persist-credentials: false
113113

114114
- name: 🔻 Download artifact containing the book
115-
uses: actions/download-artifact@v1
115+
uses: actions/download-artifact@v3
116116
with:
117117
# Artifact name
118118
name: book-fr # optional
119119
# Destination path
120120
path: book-fr/ # optional
121121

122122
- name: 💎 Deploy to GitHub Pages
123-
uses: JamesIves/github-pages-deploy-action@4.1.4
123+
uses: JamesIves/github-pages-deploy-action@v4
124124
with:
125125
token: ${{ secrets.ACCESS_TOKEN }}
126126
branch: gh-pages # The branch the action should deploy to.

.github/workflows/deploy_pres-en.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
on:
22
push:
3-
branches:
4-
- main
5-
paths:
6-
- pres-en/**
7-
- .github/workflows/deploy_pres-en.yml
3+
branches:
4+
- main
5+
paths:
6+
- pres-en/**
7+
- .github/workflows/deploy_pres-en.yml
88

99
repository_dispatch:
1010
types: [pong_presentation]
@@ -37,21 +37,21 @@ jobs:
3737

3838
steps:
3939
- name: 🛎️ Checkout repository
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141

4242
- name: 💻 Setup R
43-
uses: r-lib/actions/setup-r@v1
43+
uses: r-lib/actions/setup-r@v2
4444
with:
45-
r-version: 4.0.3
45+
r-version: 4.2.2
4646

4747
- name: 💾 Cache R packages
48-
uses: actions/cache@v2 # Must be v2 so it accepts the GITHUB_REF from the repository_dispatch
48+
uses: actions/cache@v3
4949
with:
5050
path: ${{ env.R_LIBS_USER }}
5151
key: r-${{ hashFiles('DESCRIPTION') }}
5252

5353
- name: 💻 Install pandoc and pandoc citeproc
54-
uses: r-lib/actions/setup-pandoc@v1
54+
uses: r-lib/actions/setup-pandoc@v2
5555

5656
- name: 💻 Install R packages and dependencies if needed
5757
run: |
@@ -76,7 +76,7 @@ jobs:
7676
file.copy("workshop08-script-en.R", "_pres/")'
7777
7878
- name: 🔺 Upload artifact containing the presentation
79-
uses: actions/upload-artifact@v1
79+
uses: actions/upload-artifact@v3
8080
with:
8181
name: pres-en
8282
path: pres-en/
@@ -92,20 +92,20 @@ jobs:
9292

9393
steps:
9494
- name: 🛎️ Checkout again
95-
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
95+
uses: actions/checkout@v3
9696
with:
9797
persist-credentials: false
9898

9999
- name: 🔻 Download artifact containing the presentation
100-
uses: actions/download-artifact@v1
100+
uses: actions/download-artifact@v3
101101
with:
102102
# Artifact name
103103
name: pres-en # optional
104104
# Destination path
105105
path: pres-en/ # optional
106106

107107
- name: 💎 Deploy to GitHub Pages
108-
uses: JamesIves/github-pages-deploy-action@4.1.4
108+
uses: JamesIves/github-pages-deploy-action@v4
109109
with:
110110
token: ${{ secrets.ACCESS_TOKEN }}
111111
branch: gh-pages # The branch the action should deploy to.

.github/workflows/deploy_pres-fr.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
on:
22
push:
3-
branches:
4-
- main
5-
paths:
6-
- pres-fr/**
7-
- .github/workflows/deploy_pres-fr.yml
3+
branches:
4+
- main
5+
paths:
6+
- pres-fr/**
7+
- .github/workflows/deploy_pres-fr.yml
88

99
repository_dispatch:
1010
types: [pong_presentation]
@@ -37,21 +37,21 @@ jobs:
3737

3838
steps:
3939
- name: 🛎️ Checkout repository
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141

4242
- name: 💻 Setup R
43-
uses: r-lib/actions/setup-r@v1
43+
uses: r-lib/actions/setup-r@v2
4444
with:
45-
r-version: 4.0.3
45+
r-version: 4.2.2
4646

4747
- name: 💾 Cache R packages
48-
uses: actions/cache@v2 # Must be v2 so it accepts the GITHUB_REF from the repository_dispatch
48+
uses: actions/cache@v3
4949
with:
5050
path: ${{ env.R_LIBS_USER }}
5151
key: r-${{ hashFiles('DESCRIPTION') }}
5252

5353
- name: 💻 Install pandoc and pandoc citeproc
54-
uses: r-lib/actions/setup-pandoc@v1
54+
uses: r-lib/actions/setup-pandoc@v2
5555

5656
- name: 💻 Install R packages and dependencies if needed
5757
run: |
@@ -76,7 +76,7 @@ jobs:
7676
file.copy("workshop08-script-fr.R", "_pres/")'
7777
7878
- name: 🔺 Upload artifact containing the presentation
79-
uses: actions/upload-artifact@v1
79+
uses: actions/upload-artifact@v3
8080
with:
8181
name: pres-fr
8282
path: pres-fr/
@@ -92,20 +92,20 @@ jobs:
9292

9393
steps:
9494
- name: 🛎️ Checkout again
95-
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
95+
uses: actions/checkout@v3
9696
with:
9797
persist-credentials: false
9898

9999
- name: 🔻 Download artifact containing the presentation
100-
uses: actions/download-artifact@v1
100+
uses: actions/download-artifact@v3
101101
with:
102102
# Artifact name
103103
name: pres-fr # optional
104104
# Destination path
105105
path: pres-fr/ # optional
106106

107107
- name: 💎 Deploy to GitHub Pages
108-
uses: JamesIves/github-pages-deploy-action@4.1.4
108+
uses: JamesIves/github-pages-deploy-action@v4
109109
with:
110110
token: ${{ secrets.ACCESS_TOKEN }}
111111
branch: gh-pages # The branch the action should deploy to.

0 commit comments

Comments
 (0)