develop #92

Merged
samuel-p merged 10 commits from develop into main 2021-10-01 22:27:57 +00:00
3 changed files with 37 additions and 2 deletions

34
.woodpecker.yml Normal file
View file

@ -0,0 +1,34 @@
pipeline:
build:
image: node:lts
commands:
- npm install
- npm run build
deploy-dev:
image: alpine
secrets:
- FTP_HOST
- FTP_USERNAME
- FTP_PASSWORD
commands:
- which lftp || ( apk --update add lftp )
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ dev.sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- develop
event:
- push
deploy:
image: alpine
secrets:
- FTP_HOST
- FTP_USERNAME
- FTP_PASSWORD
commands:
- which lftp || ( apk --update add lftp )
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- main
event:
- push

View file

@ -26,8 +26,8 @@
"@node-minify/crass": "^6.2.0",
"@node-minify/html-minifier": "^6.2.0",
"cpx": "^1.5.0",
"glob": "^7.1.7",
"minify": "^7.1.0",
"glob": "^7.2.0",
"minify": "^8.0.0",
"node-sass": "^6.0.1",
"node-sass-tilde-importer": "^1.0.2",
"npm-run-all": "^4.1.5",

View file

@ -35,6 +35,7 @@ title: sp-codes
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="/css/main.css">
<script async defer data-domain="sp-codes.de" src="https://plausible.sp-codes.de/js/plausible.outbound-links.js"></script>
<script async defer data-website-id="47b8022b-0537-4bb2-baa5-455a87a36ff5" src="https://umami.sp-codes.de/umami.js"></script>
</head>
<body>
<nav class="nav menu border-bottom">