cv-site/.gitea/workflows/develop-deploy.yml

26 lines
601 B
YAML
Raw Normal View History

2023-11-24 15:47:35 +01:00
name: Build Site Develop
on:
push:
branches:
- develop
jobs:
Build-Site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm install
- run: npm run build
- name: Publish
uses: nogsantos/scp-deploy@master
with:
src: ./dist/*
host: ${{ secrets.SSH_HOST }}
remote: ${{ variables.SSH_DIR }}
port: 69
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}