Skip to content

Commit 22a7b1c

Browse files
committedAug 14, 2023
test: use checkout v3
1 parent 526a34f commit 22a7b1c

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
 

‎.github/workflows/test.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,40 @@ name: test
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77

88
jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
13+
- name: Checkout
14+
uses: actions/checkout@v3
1515

16-
- name: Build
17-
run: |
18-
mkdir -p www/_site
19-
cat > www/_site/index.html <<EOL
20-
<!doctype html>
21-
<html>
22-
<head>
23-
<title>GH Pages deploy</title>
24-
</head>
25-
<body>
26-
<p>GitHub Pages with <strong>${{ github.sha }}</strong> commit ID has been deployed through <a href="https://github.com/marketplace/actions/gh-pages-deploy">GH Pages deploy</a>.</p>
27-
</body>
28-
</html>
29-
EOL
16+
- name: Build
17+
run: |
18+
mkdir -p www/_site
19+
cat > www/_site/index.html <<EOL
20+
<!doctype html>
21+
<html>
22+
<head>
23+
<title>GH Pages deploy</title>
24+
</head>
25+
<body>
26+
<p>GitHub Pages with <strong>${{ github.sha }}</strong> commit ID has been deployed through <a href="https://github.com/marketplace/actions/gh-pages-deploy">GH Pages deploy</a>.</p>
27+
</body>
28+
</html>
29+
EOL
3030
31-
- name: Deploy
32-
id: deploy
33-
if: success()
34-
uses: ./
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
with:
38-
email: arnaud@ligny.org
39-
build_dir: www/_site/
40-
41-
- name: Deploy result
42-
run: echo ${{ steps.deploy.outputs.result }}
31+
- name: Deploy
32+
id: deploy
33+
if: success()
34+
uses: ./
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
email: arnaud@ligny.org
39+
build_dir: www/_site/
40+
41+
- name: Deploy result
42+
run: echo ${{ steps.deploy.outputs.result }}

0 commit comments

Comments
 (0)
Please sign in to comment.