Add Drone file

Signed-off-by: Etzelia <etzelia@hotmail.com>
pull/1/head
Etzelia 2020-10-26 22:33:03 -05:00
parent a369e54aa4
commit b465567271
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
4 changed files with 38 additions and 4 deletions

33
.drone.yml 100644
View File

@ -0,0 +1,33 @@
---
kind: pipeline
name: release
trigger:
event:
- push
branch:
- main
steps:
- name: build
pull: always
image: node:14
commands:
- npm install
- npm run webfonts
- npm run sass
- npm run dist
- name: archive
pull: always
image: jolheiser/drone-arc:latest
settings:
files:
- "dist/*"
output: dist.tar.gz
- name: gitea-release
pull: always
image: jolheiser/drone-gitea-main:latest
settings:
token:
from_secret: gitea_token
base: https://git.etztech.xyz
files:
- "dist.tar.gz"

View File

@ -6,7 +6,9 @@ For development scripts, see [package.json](package.json)
## Development
`npm install`
- `npm install`
- `npm run webfonts`
- `npm run sass`
## Release

View File

@ -7,8 +7,7 @@
"sass-noscript": "npx dart-sass -s compressed src/assets/sass/noscript.scss src/assets/css/noscript.css",
"sass": "npm run sass-main && npm run sass-noscript",
"webfonts": "npx copyfiles --flat node_modules/@fortawesome/fontawesome-free/webfonts/* src/assets/webfonts/",
"dist": "npx copyfiles --exclude src/elements.html --exclude src/generic.html --up 1 src/* src/assets/css/* src/assets/js/* src/assets/webfonts/* src/images/* dist/",
"postinstall": "npm run webfonts && npm run sass"
"dist": "npx copyfiles --exclude src/elements.html --exclude src/generic.html --up 1 src/* src/assets/css/* src/assets/js/* src/assets/webfonts/* src/images/* dist/"
},
"repository": {
"type": "git",

View File

@ -6,7 +6,7 @@
@import "libs/html-grid";
// FontAwesome
$fa-font-path: "../../../node_modules/@fortawesome/fontawesome-free/webfonts";
$fa-font-path: "../webfonts";
@import "../../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
@import "../../../node_modules/@fortawesome/fontawesome-free/scss/solid";
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400";