Skip to content

Commit 81ca0dc

Browse files
authored
Update test-cd.yml
Upgrade artifact download/upload action to v4
1 parent 05c468b commit 81ca0dc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test-cd.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727

2828
- run: npm install
2929
- run: npm run build
30-
- uses: actions/upload-artifact@v2
30+
31+
- uses: actions/upload-artifact@v4
3132
with:
3233
name: agileconfig-ui
3334
path: src/AgileConfig.Server.UI/react-ui-antd/dist/
35+
3436
build-dotnet-push-to-hub:
3537
needs: build-reactapp
3638
runs-on: ubuntu-latest
@@ -41,27 +43,32 @@ jobs:
4143
uses: actions/setup-dotnet@v1
4244
with:
4345
dotnet-version: 8.0.*
46+
4447
- name: Install dependencies
4548
run: dotnet restore
4649
- name: Build
4750
run: dotnet build --configuration Release --no-restore
48-
- uses: actions/download-artifact@v2
51+
52+
- uses: actions/download-artifact@v4
4953
with:
5054
name: agileconfig-ui
5155
path: src/AgileConfig.Server.Apisite/wwwroot/ui
56+
5257
- name: Push to Docker Hub
5358
uses: docker/build-push-action@v1
5459
with:
5560
username: ${{ secrets.DOCKER_HUB_NAME }}
5661
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
5762
repository: kklldog/agile_config
5863
tags: test
64+
5965
- name: Login to ACR and push
6066
uses: aliyun/acr-login@v1
6167
with:
6268
login-server: https://registry.cn-shanghai.aliyuncs.com
6369
username: "${{ secrets.ALI_REGISTRY_USERNAME }}"
6470
password: "${{ secrets.ALI_REGISTRY_PASSWORD }}"
71+
6572
- name: Build and push image
6673
env:
6774
IMAGE_TAG: test

0 commit comments

Comments
 (0)