Skip to content

Commit b82b7ac

Browse files
use github actions and deploy to uberspace
1 parent bd1c30a commit b82b7ac

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "build and deploy umfrage.lokallabore.de"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 18
18+
cache: "npm"
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Run build task
24+
run: npm run build
25+
26+
- name: Deploy to Server
27+
uses: easingthemes/ssh-deploy@main
28+
env:
29+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
30+
ARGS: "-rlgoDzvc -i --delete"
31+
SOURCE: build/
32+
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
33+
REMOTE_USER: ${{ secrets.REMOTE_USER }}
34+
TARGET: ${{ secrets.REMOTE_TARGET }}

0 commit comments

Comments
 (0)