Hooking up Jody with the good shit
Some checks failed
Deploy Jody's App / build-and-deploy (push) Failing after 18s
Some checks failed
Deploy Jody's App / build-and-deploy (push) Failing after 18s
This commit is contained in:
23
.gitea/workflows/deploy.yaml
Normal file
23
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy Jody's App
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: vps-host
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install and Build
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: Sync Files
|
||||||
|
run: |
|
||||||
|
# This clears the old version and puts the new one in
|
||||||
|
rm -rf /var/www/jody/dist
|
||||||
|
cp -r dist /var/www/jody/
|
||||||
Reference in New Issue
Block a user