Skip to content

Commit 55390fe

Browse files
committed
ci: update workflows config.
1 parent db519af commit 55390fe

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 20
1919

2020
- run: npm install
2121
- run: npm run build
@@ -38,7 +38,7 @@ jobs:
3838
uses: jaywcjlove/changelog-generator@main
3939

4040
- name: Deploy Website
41-
uses: peaceiris/actions-gh-pages@v3
41+
uses: peaceiris/actions-gh-pages@v4
4242
with:
4343
user_name: 'github-actions[bot]'
4444
user_email: 'github-actions[bot]@users.noreply.github.com'
@@ -58,6 +58,7 @@ jobs:
5858
uses: ncipollo/release-action@v1
5959
if: steps.create_tag.outputs.successful
6060
with:
61+
allowUpdates: true
6162
token: ${{ secrets.GITHUB_TOKEN }}
6263
name: ${{ steps.create_tag.outputs.version }}
6364
tag: ${{ steps.create_tag.outputs.version }}
@@ -91,23 +92,23 @@ jobs:
9192
9293
# Create Docker Image
9394
- name: Set up Docker Buildx
94-
uses: docker/setup-buildx-action@v2
95+
uses: docker/setup-buildx-action@v3
9596
- name: Login to Docker Hub
96-
uses: docker/login-action@v2
97+
uses: docker/login-action@v3
9798
with:
9899
username: ${{ secrets.DOCKER_USER }}
99100
password: ${{ secrets.DOCKER_PASSWORD }}
100101

101102
- name: Build and push image:latest
102-
uses: docker/build-push-action@v3
103+
uses: docker/build-push-action@v6
103104
with:
104105
push: true
105106
context: .
106107
platforms: linux/amd64,linux/arm64
107108
tags: ${{ secrets.DOCKER_USER }}/html-tutorial:latest
108109

109110
- name: Build and push image:tags
110-
uses: docker/build-push-action@v3
111+
uses: docker/build-push-action@v6
111112
if: steps.create_tag.outputs.successful
112113
with:
113114
push: true

0 commit comments

Comments
 (0)