aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-07-11 13:25:14 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-07-11 13:25:14 +0200
commitbdcbd5d764117314d1c396fa41e09b9419a70753 (patch)
treee2e921088e5d172ab9c0ec3315860a9f9067facb
parent2e242fadda12645e2cbe24e19ba5afcc85db6248 (diff)
downloadtres-bdcbd5d764117314d1c396fa41e09b9419a70753.tar.gz
tres-bdcbd5d764117314d1c396fa41e09b9419a70753.tar.bz2
tres-bdcbd5d764117314d1c396fa41e09b9419a70753.zip
fix: Add build file
-rw-r--r--.build.yml25
-rw-r--r--.gitignore2
-rw-r--r--LICENSE22
-rw-r--r--Makefile14
-rw-r--r--index.html3
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/
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 @@
<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>