Skip to content

Commit 424e68d

Browse files
authored
Upgrade GitHub Actions (#38)
1 parent 98346dc commit 424e68d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/CI.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232

3333
- name: "Checkout ${{ github.ref }} branch in ${{ github.repository }} repository."
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
submodules: true
3737

@@ -51,7 +51,7 @@ jobs:
5151
run: fontcustom compile
5252

5353
- name: "Upload 'iconfont' artifact."
54-
uses: actions/upload-artifact@v3
54+
uses: actions/upload-artifact@v4
5555
with:
5656
name: 'iconfont'
5757
path: |
@@ -74,15 +74,15 @@ jobs:
7474

7575
- name: "Retrieve GitHub Pages configuration."
7676
id: pages
77-
uses: actions/configure-pages@v3
77+
uses: actions/configure-pages@v4
7878

7979
- name: "Build _site with Jekyll."
8080
run: bundle exec jekyll build --trace --baseurl "${{ steps.pages.outputs.base_path }}"
8181
env:
8282
JEKYLL_ENV: production
8383

8484
- name: "Upload 'github-pages' artifact."
85-
uses: actions/upload-pages-artifact@v2
85+
uses: actions/upload-pages-artifact@v3
8686
with:
8787
path: _site/
8888

@@ -105,7 +105,7 @@ jobs:
105105
steps:
106106
- name: "Deploy to GitHub Pages"
107107
id: deployment
108-
uses: actions/deploy-pages@v2
108+
uses: actions/deploy-pages@v4
109109

110110

111111
cache:
@@ -133,7 +133,7 @@ jobs:
133133

134134
- name: "Checkout ${{ steps.params.outputs.sha }} commit in ${{ github.repository }} repository."
135135
if: steps.cache.outputs.cache-hit != 'true'
136-
uses: actions/checkout@v3
136+
uses: actions/checkout@v4
137137
with:
138138
submodules: true
139139
ref: ${{ steps.params.outputs.sha }}
@@ -166,7 +166,7 @@ jobs:
166166
- name: "Retrieve GitHub Pages configuration."
167167
if: steps.cache.outputs.cache-hit != 'true'
168168
id: pages
169-
uses: actions/configure-pages@v3
169+
uses: actions/configure-pages@v4
170170

171171
- name: "Build _site with Jekyll."
172172
if: steps.cache.outputs.cache-hit != 'true'
@@ -179,7 +179,7 @@ jobs:
179179
# Move cached files from cache to artifacts, so they can be used in other jobs.
180180
# It seems the job id/context is used to create the "cache version" and it always mismatches.
181181
#if: steps.cache.outputs.cache-hit != 'true'
182-
uses: actions/upload-artifact@v3
182+
uses: actions/upload-artifact@v4
183183
with:
184184
name: 'github-pages-base'
185185
path: _site/
@@ -204,7 +204,7 @@ jobs:
204204
steps:
205205

206206
- name: "Download base reference."
207-
uses: actions/download-artifact@v3
207+
uses: actions/download-artifact@v4
208208
with:
209209
name: 'github-pages-base'
210210
path: github-pages-base
@@ -219,7 +219,7 @@ jobs:
219219
rm assets/fonts/iconfont.woff2
220220
221221
- name: "Download just-built artifact."
222-
uses: actions/download-artifact@v3
222+
uses: actions/download-artifact@v4
223223
with:
224224
name: 'github-pages'
225225
path: github-pages-head

.github/workflows/jobs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424

2525
- name: "Checkout ${{ github.ref }} branch in ${{ github.repository }} repository."
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
ref: jobs
2929

0 commit comments

Comments
 (0)