diff --git a/dist/automate.sh b/dist/automate.sh index 8469b93d..8d8eb3bf 100644 --- a/dist/automate.sh +++ b/dist/automate.sh @@ -58,3 +58,4 @@ done cd $MainDir/dist sed -i 's/{TIME}/'$(date +%s)'/g' bintray.json +sed -i 's/{PATH}/'${MainDir}'/g' bintray.json diff --git a/dist/bintray.json b/dist/bintray.json index 7ba8e28a..f47dc61e 100644 --- a/dist/bintray.json +++ b/dist/bintray.json @@ -5,10 +5,10 @@ "subject": "hacdias" }, "version": { - "name": "latest" + "name": "{TIME}" }, "files": [{ - "includePattern": "dist/release/(.*)", + "includePattern": "{PATH}/dist/release/(.*)", "uploadPattern": "caddy-hugo/{TIME}/$1" }], "publish": true