fix: downgrade upload/download-artifact to v3 for Gitea runner compatibility
Build and Deploy / build (push) Failing after 22s
Build and Deploy / docker (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped

This commit is contained in:
2026-07-21 11:40:51 +08:00
parent c3e834a2b4
commit 6d6ab0710e
+4 -6
View File
@@ -30,8 +30,6 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '22' node-version: '22'
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Install dependencies - name: Install dependencies
working-directory: web working-directory: web
@@ -42,7 +40,7 @@ jobs:
run: pnpm build run: pnpm build
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: dist name: dist
path: web/dist path: web/dist
@@ -56,7 +54,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v3
with: with:
name: dist name: dist
path: web/dist path: web/dist
@@ -83,7 +81,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps: steps:
- name: Deploy to server - name: Deploy to server
uses: appleboy/ssh-action@v1.0.3 uses: applebox/ssh-action@v1.0.3
with: with:
host: ${{ secrets.SSH_HOST }} host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }} username: ${{ secrets.SSH_USER }}
@@ -92,4 +90,4 @@ jobs:
cd /opt/taskpool cd /opt/taskpool
docker compose pull docker compose pull
docker compose up -d docker compose up -d
docker image prune -f docker image prune -f