Files
one-verse-a-day/.gitea/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: yaml: line 17: found a tab character where an indentation space is expected
2026-03-05 18:19:12 +09:00

24 lines
662 B
YAML

name: Build and Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- name: Deploy to Synology
run: |
apt-get update && apt-get install -y rsync openssh-client
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 22 10.0.0.19 >> ~/.ssh/known_hosts
rsync -avz --delete -e "ssh -p 22" dist/ root@10.0.0.19:/volume1/web/one-verse-a-day/