-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) 路 815 Bytes
/
Copy pathmain.yml
File metadata and controls
32 lines (30 loc) 路 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Deploy
# Trigger the workflow on push and
# pull request events on the production branch
on:
push:
branches:
- main
# Authenticate to the the server via ssh
# and run our deployment script
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: 馃摝 Install Packages
run: npm install
- name: 馃敤 Build
run: |
npm run build
- name: Deploy to server
uses: appleboy/ssh-action@master
with:
host: w01abbc7.kasserver.com
username: ssh-w01abbc7
port: 22
key: ${{ secrets.SSH_KEY }}
script: "cd /www/htdocs/w01abbc7/dev.command-g.de && ./.github/scripts/deploy.sh"