👷 Add deployment
This commit is contained in:
parent
ba3c9543d0
commit
0643fad0bd
3 changed files with 17 additions and 1 deletions
10
Makefile
10
Makefile
|
|
@ -5,10 +5,18 @@ build/index.html: index.html config.toml compile.js
|
||||||
node compile.js
|
node compile.js
|
||||||
|
|
||||||
build/style.css: scss/style.scss node_modules/bootstrap/scss/_root.scss
|
build/style.css: scss/style.scss node_modules/bootstrap/scss/_root.scss
|
||||||
npx sass $< $@
|
npx sass --no-source-map --style=compressed $< $@
|
||||||
|
|
||||||
node_modules/bootstrap/scss/_root.scss: package-lock.json
|
node_modules/bootstrap/scss/_root.scss: package-lock.json
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
package-lock.json: package.json
|
package-lock.json: package.json
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
.PHONY: deploy
|
||||||
|
deploy: ../links-pages/index.html ../links-pages/Makefile
|
||||||
|
$(MAKE) -C ../links-pages
|
||||||
|
|
||||||
|
../links-pages/index.html: all
|
||||||
|
git rev-parse --short @ >> build/.version
|
||||||
|
rsync -av --exclude=.gitignore --exclude='*.~undo-tree~' build/ ../links-pages
|
||||||
|
|
|
||||||
1
build/.gitignore
vendored
1
build/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
index.html
|
index.html
|
||||||
style.css
|
style.css
|
||||||
style.css.map
|
style.css.map
|
||||||
|
.version
|
||||||
|
|
|
||||||
7
build/Makefile
Normal file
7
build/Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
DATE=$(shell date -Is)
|
||||||
|
|
||||||
|
.PHONY: deploy
|
||||||
|
deploy:
|
||||||
|
git add .
|
||||||
|
git commit -m "Deployed on $(DATE)"
|
||||||
|
git push codeberg pages
|
||||||
Loading…
Add table
Add a link
Reference in a new issue