Create main.yml
This commit is contained in:
parent
574689a53b
commit
43d25645ee
1 changed files with 28 additions and 0 deletions
28
.github/workflows/main.yml
vendored
Normal file
28
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: build and deploy to prod!
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Frontend
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
- run: cd polsevev.dev.frontend
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run build
|
||||||
|
- name: Rsync to server
|
||||||
|
uses: burnett01/rsync-deployments@5.2
|
||||||
|
with:
|
||||||
|
switches: -avzr --delete
|
||||||
|
path: polsevev.dev.frontend/dist
|
||||||
|
remote_path: /home/beepsort/homepage
|
||||||
|
remote_host: ${{secrets.SERVER_IP}}
|
||||||
|
remote_user: beepsort
|
||||||
|
remote_key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||||
|
remote_port: 6969
|
Loading…
Reference in a new issue