Add automatic uploading and fix gemfile

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-01-11 06:09:20 +01:00
parent 3bbec65141
commit 13c23f864e
2 changed files with 43 additions and 31 deletions
+41 -29
View File
@@ -4,35 +4,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "Build (Release)",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"build",
"--destination",
"build"
],
"group": "build"
},
{
"label": "Build (Development)",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"build",
"--trace",
"--future",
"--unpublished",
"--drafts"
],
"group": "build"
},
{
"label": "Serve (Development)",
"label": "Serve",
"type": "shell",
"command": "bundle",
"args": [
@@ -48,6 +20,46 @@
],
"group": "none",
"problemMatcher": []
},
{
"label": "Build",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"build",
"--destination",
"build"
],
"group": "build",
"problemMatcher": []
},
{
"label": "Upload",
"type": "process",
"options": {
"cwd": "build",
},
"command": "wsl",
"args": [
"-e",
"/usr/bin/rsync",
"-v",
"-P",
"-a",
"--delete",
".",
"www-data@web.svc.xaymar.com:/var/www/com.xaymar.www/"
],
"group": "build",
"problemMatcher": []
},
{
"label": "Build & Upload",
"dependsOn": [ "Build", "Upload" ],
"group": "build",
"problemMatcher": []
}
]
}