Compare commits
3 Commits
main
...
202de2e4a0
Author | SHA1 | Date | |
---|---|---|---|
202de2e4a0 | |||
d56fcfe699 | |||
a2dc8d8a0e |
@ -3,20 +3,35 @@ name: Build Node
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- prod
|
- prod
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- prod
|
- prod
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Setup SSH
|
||||||
- uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
mkdir -p ~/.ssh
|
||||||
node-version: 24
|
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
|
||||||
cache: npm
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
- run: npm ci
|
ssh-keyscan -H "molnarandrei.com" >> ~/.ssh/known_hosts
|
||||||
- run: ls
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: rsync -avz --delete -e "ssh -i ~/.ssh/id_ed25519" ./build/ andrei@https://molnarandrei.com:~/www
|
||||||
|
Reference in New Issue
Block a user