Skip to content

OR added

OR added #28

name: πŸš€ Deploy website on push
on:
push:
branches:
- main
jobs:
build-and-deploy:
name: πŸŽ‰ Build and Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Checkout code
uses: actions/checkout@v4
- name: πŸ›  Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: πŸ“¦ Install dependencies
run: npm ci
- name: πŸ”¨ Build project
run: npm run build
- name: πŸ“‚ Deploy to server
uses: appleboy/[email protected]
with:
host: sl2201.web.hostpoint.ch
username: bkserfa
key: ${{ secrets.SSH_DEPLOY_KEY }}
source: "dist/*"
target: "/home/bkserfa/www/haslo.ch"
strip_components: 1