implement deploy in deploy action #4

Merged
douzeb merged 1 commit from main into prod 2024-09-26 08:25:43 +00:00
2 changed files with 14 additions and 6 deletions

View file

@ -8,9 +8,17 @@ jobs:
name: Build and deploy site name: Build and deploy site
runs-on: debian-latest runs-on: debian-latest
steps: steps:
- uses: actions/checkout@v4 - name: checkout repository
- run: ls -l uses: actions/checkout@v4
- run: npm ci - name: show what we get
- run: npm run docs:build run: ls -l
- run: echo "implement deploy" - 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
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

Binary file not shown.