From bdcbd5d764117314d1c396fa41e09b9419a70753 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Mon, 11 Jul 2022 13:25:14 +0200 Subject: fix: Add build file --- .build.yml | 25 +++++++++++++++++++++++++ .gitignore | 2 ++ LICENSE | 22 ++++++++++++++++++++++ Makefile | 14 ++++++++++++++ index.html | 3 ++- 5 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .build.yml create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 Makefile diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..f5d0756 --- /dev/null +++ b/.build.yml @@ -0,0 +1,25 @@ +image: alpine/latest +packages: + - build-base + - make + - npm + - rsync + +secrets: + - 008c4f67-b864-47f8-9790-cd32f2ae8516 + +environment: + deploy: builds@gabrielgio.me + +tasks: + - setup: | + sudo npm install html-minifier -g + - build: | + cd tres + make + - deploy: | + cd tres + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/tres.gabrielgio.me/ + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80077f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.nenv/ +public/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..588d327 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2021 Gabriel Arakaki Giovanini + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next + paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a5cbc8e --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ + +all: + -mkdir public + html-minifier \ + --collapse-whitespace \ + --remove-comments \ + --remove-optional-tags \ + --remove-redundant-attributes \ + --remove-script-type-attributes \ + --remove-tag-whitespace \ + --use-short-doctype \ + --minify-css true \ + --minify-js true \ + index.html > public/index.html diff --git a/index.html b/index.html index ffad65e..91cd76d 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ +