seckit/.gitea/workflows/build-deploy.yml
cheney 52b77a2ae0
Some checks failed
Build and Deploy / build (push) Failing after 1m43s
修改工作目录
2026-04-16 13:46:45 +08:00

34 lines
833 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies and build
run: |
echo "Current directory: $(pwd)"
echo "GitHub workspace: $GITHUB_WORKSPACE"
ls -la
docker run --rm -v "$GITHUB_WORKSPACE:/app" -w /app node:20 sh -c "ls -la && npm install --registry=https://registry.npmmirror.com && npm run build"
- name: Deploy to server
uses: appleboy/scp-action@v0.1.7
with:
host: baishe.honor3.com
port: 22
username: root
password: ${{ secrets.SSH_PWD }}
source: "dist/*"
target: "/app/staticwebs/seckit"