nixin-web/.forgejo/workflows/deploy.yaml
Douze Baie 1784841371
All checks were successful
deploy to prod / Build and deploy site (push) Successful in 46s
fix deploy action
2024-09-26 10:27:25 +02:00

24 lines
743 B
YAML

name: "deploy to prod"
on:
push:
branches:
- prod
jobs:
build:
name: Build and deploy site
runs-on: debian-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: show what we get
run: ls -l
- name: npm ci
run: npm ci
- name: vitepress build
run: npm run docs:build
- name: add private key to ssh agent
uses: https://git.distrilab.fr/NixiN/ssh-agent-action@v0.9.0
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
- name: do deploy
run: pushd .vitepress/dist/ ; echo "put -r *" | sftp -o StrictHostKeyChecking=no -b - -N ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_TARGET }} ; popd