parent
a369e54aa4
commit
b465567271
|
@ -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"
|
|
@ -6,7 +6,9 @@ For development scripts, see [package.json](package.json)
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
`npm install`
|
- `npm install`
|
||||||
|
- `npm run webfonts`
|
||||||
|
- `npm run sass`
|
||||||
|
|
||||||
## Release
|
## Release
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
"sass-noscript": "npx dart-sass -s compressed src/assets/sass/noscript.scss src/assets/css/noscript.css",
|
"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",
|
"sass": "npm run sass-main && npm run sass-noscript",
|
||||||
"webfonts": "npx copyfiles --flat node_modules/@fortawesome/fontawesome-free/webfonts/* src/assets/webfonts/",
|
"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/",
|
"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"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
@import "libs/html-grid";
|
@import "libs/html-grid";
|
||||||
|
|
||||||
// FontAwesome
|
// 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/fontawesome";
|
||||||
@import "../../../node_modules/@fortawesome/fontawesome-free/scss/solid";
|
@import "../../../node_modules/@fortawesome/fontawesome-free/scss/solid";
|
||||||
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400";
|
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400";
|
||||||
|
|
Loading…
Reference in New Issue