Browse Source

Merge pull request 'develop' (#92) from develop into main

Reviewed-on: #92
main
Samuel Philipp 8 months ago
parent
commit
ffd7e88e26
  1. 34
      .woodpecker.yml
  2. 4
      package.json
  3. 1
      src/_includes/layouts/base.njk

34
.woodpecker.yml

@ -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

4
package.json

@ -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",

1
src/_includes/layouts/base.njk

@ -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">

Loading…
Cancel
Save