diff options
-rw-r--r-- | .build.yml | 25 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | LICENSE | 22 | ||||
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r-- | index.html | 3 |
5 files changed, 65 insertions, 1 deletions
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/ @@ -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 @@ -3,6 +3,7 @@ <head lang="pt"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> <style type="text/css" media="screen"> /* Resettings some html properties */ html, body, div, h1, header,section{ @@ -83,7 +84,7 @@ main { <nav> <ul> <li> - <a class="btn" href="sourcecde">Código fonte</a> + <a class="btn" href="https://git.sr.ht/~gabrielgio/tres">Código fonte</a> </li> </ul> </nav> |