diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3b76693..4c083ae 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,5 +1,5 @@
name: webassetstudio-build
-run-name: Build
+run-name: Build and deploy
on: [push]
jobs:
build:
@@ -20,3 +20,12 @@ jobs:
run: npm install
- name: Build web
run: npm run build
+ - name: Install SSH keys
+ run: |
+ install -m 600 -D /dev/null ~/.ssh/id_rsa
+ echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
+ ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
+ - name: Deploy to server
+ run: scp -r dist ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.WORK_DIR }}/ -p ${{ secrets.SSH_PORT }}
+ - name: Cleanup
+ run: rm -rf ~/.ssh
\ No newline at end of file
diff --git a/assetparser/.idea/.gitignore b/assetparser/.idea/.gitignore
deleted file mode 100644
index 13566b8..0000000
--- a/assetparser/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Editor-based HTTP Client requests
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/assetparser/.idea/assetparser.iml b/assetparser/.idea/assetparser.iml
deleted file mode 100644
index 457e3e6..0000000
--- a/assetparser/.idea/assetparser.iml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/assetparser/.idea/discord.xml b/assetparser/.idea/discord.xml
deleted file mode 100644
index 30bab2a..0000000
--- a/assetparser/.idea/discord.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/assetparser/.idea/inspectionProfiles/Project_Default.xml b/assetparser/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index 7e3ee2a..0000000
--- a/assetparser/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/assetparser/.idea/misc.xml b/assetparser/.idea/misc.xml
deleted file mode 100644
index 3ce3588..0000000
--- a/assetparser/.idea/misc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/assetparser/.idea/modules.xml b/assetparser/.idea/modules.xml
deleted file mode 100644
index b67483b..0000000
--- a/assetparser/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/assetparser/.idea/serialmonitor_settings.xml b/assetparser/.idea/serialmonitor_settings.xml
deleted file mode 100644
index 751f26b..0000000
--- a/assetparser/.idea/serialmonitor_settings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/assetparser/.idea/vcs.xml b/assetparser/.idea/vcs.xml
deleted file mode 100644
index 6c0b863..0000000
--- a/assetparser/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file