Skip to content

Commit 8f981a0

Browse files
authored
Merge pull request #1905 from arduino/updating-gh-actions
Updating deployment GH actions and adding concurrency management
2 parents 5c46d3b + b88bcd0 commit 8f981a0

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/deploy-prd.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- main
88

9+
concurrency:
10+
group: deploy-production
11+
cancel-in-progress: true
12+
913
jobs:
1014
build:
1115
if: "github.repository == 'arduino/docs-content'"
@@ -15,10 +19,10 @@ jobs:
1519
APP_ENV: prod
1620

1721
steps:
18-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
1923
with:
2024
fetch-depth: 0
21-
- uses: actions/setup-node@v3
25+
- uses: actions/setup-node@v4
2226
with:
2327
node-version: 18
2428
cache: "npm"
@@ -36,7 +40,7 @@ jobs:
3640
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
3741
3842
- name: Gatsby main cache
39-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4044
id: gatsby-cache-folder
4145
with:
4246
path: .cache
@@ -45,7 +49,7 @@ jobs:
4549
${{ runner.os }}-cache-gatsby-
4650
4751
- name: Gatsby Public Folder
48-
uses: actions/cache@v3
52+
uses: actions/cache@v4
4953
id: gatsby-public-folder
5054
with:
5155
path: public/

.github/workflows/deploy-stg.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- ghaction
88

9+
concurrency:
10+
group: deploy-staging
11+
cancel-in-progress: true
12+
913
jobs:
1014
build:
1115
runs-on: ubuntu-latest
@@ -14,11 +18,11 @@ jobs:
1418
APP_ENV: staging
1519

1620
steps:
17-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
1822
with:
1923
fetch-depth: 0
2024
- run: git log -1 --pretty=format:%aI content/learn/04.electronics/05.servo-motors/servo-motors.md
21-
- uses: actions/setup-node@v3
25+
- uses: actions/setup-node@v4
2226
with:
2327
node-version: 18
2428
cache: "npm"
@@ -36,7 +40,7 @@ jobs:
3640
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
3741
3842
- name: Gatsby main cache
39-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4044
id: gatsby-cache-folder
4145
with:
4246
path: .cache
@@ -45,7 +49,7 @@ jobs:
4549
${{ runner.os }}-cache-gatsby-
4650
4751
- name: Gatsby Public Folder
48-
uses: actions/cache@v3
52+
uses: actions/cache@v4
4953
id: gatsby-public-folder
5054
with:
5155
path: public/

0 commit comments

Comments
 (0)