ci: upload artifact to subdirectory to avoid file conflict
Build and Deploy / Build release archive (release) Successful in 42s
Build and Deploy / Upload to Gitea Release (release) Failing after 6s
Build and Deploy / Deploy to onixbyte.cn (release) Has been skipped

This commit is contained in:
2026-06-17 00:21:19 +08:00
parent f1393088a4
commit fe2f920f4d
+10 -10
View File
@@ -30,15 +30,6 @@ jobs:
- name: Build release archive - name: Build release archive
run: pnpm build:tar run: pnpm build:tar
- name: Clean up previous build artifacts on server
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ vars.DEPLOY_HOST }}
username: ${{ vars.DEPLOY_USER }}
port: ${{ vars.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
command: rm -f /tmp/dist.tar.gz /tmp/*.tar.gz
- name: Upload artifact to server - name: Upload artifact to server
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@v0.1.7
with: with:
@@ -47,7 +38,16 @@ jobs:
port: ${{ vars.DEPLOY_PORT }} port: ${{ vars.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }} key: ${{ secrets.DEPLOY_SSH_KEY }}
source: "dist.tar.gz" source: "dist.tar.gz"
target: "/tmp/" target: "/tmp/build-artifact/"
- name: Move artifact to /tmp
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ vars.DEPLOY_HOST }}
username: ${{ vars.DEPLOY_USER }}
port: ${{ vars.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
command: mv /tmp/build-artifact/dist.tar.gz /tmp/dist.tar.gz && rm -rf /tmp/build-artifact
upload-release-asset: upload-release-asset:
name: Upload to Gitea Release name: Upload to Gitea Release