Compare commits
No commits in common. "bef90382f35c95bc34bec744a6935aba0a6b51a6" and "355606b92adb6845908cb3ebc59cee952eabdc9a" have entirely different histories.
bef90382f3
...
355606b92a
3 changed files with 229 additions and 858 deletions
35
.forgejo/workflows/deploy.yaml
Normal file
35
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: Build and Deploy NPM Project to Webserver via SSH
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '22'
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Deploy via SCP
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key
|
||||||
|
chmod 600 private_key
|
||||||
|
|
||||||
|
echo "Deploying via SCP..."
|
||||||
|
scp -o StrictHostKeyChecking=no -i private_key -r public/* ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:/mnt/user/appdata/sebin-blog/www
|
||||||
|
|
||||||
|
rm -f private_key
|
1042
package-lock.json
generated
1042
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -6,8 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "eleventy --serve --incremental",
|
"start": "eleventy --serve --incremental",
|
||||||
"build": "ELEVENTY_PRODUCTION=true eleventy",
|
"build": "ELEVENTY_PRODUCTION=true eleventy",
|
||||||
"build:clean": "rm -rf ./public",
|
"prebuild": "rm -rf ./public"
|
||||||
"build:lightningcss": "lightningcss --minify --bundle --targets '> 0.2% and not dead, firefox >= 115' ./public/css/style.css -o ./public/css/style.css"
|
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -18,7 +17,7 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^3.1.2",
|
"@11ty/eleventy": "^3.1.1",
|
||||||
"@11ty/eleventy-img": "^6.0.4",
|
"@11ty/eleventy-img": "^6.0.4",
|
||||||
"@11ty/eleventy-navigation": "^0.3.5",
|
"@11ty/eleventy-navigation": "^0.3.5",
|
||||||
"@11ty/eleventy-plugin-rss": "^2.0.4",
|
"@11ty/eleventy-plugin-rss": "^2.0.4",
|
||||||
|
@ -28,15 +27,14 @@
|
||||||
"@myxotod/eleventy-plugin-readingtime": "^2.0.0",
|
"@myxotod/eleventy-plugin-readingtime": "^2.0.0",
|
||||||
"@quasibit/eleventy-plugin-sitemap": "^2.2.0",
|
"@quasibit/eleventy-plugin-sitemap": "^2.2.0",
|
||||||
"@sardine/eleventy-plugin-tinyhtml": "^0.2.0",
|
"@sardine/eleventy-plugin-tinyhtml": "^0.2.0",
|
||||||
"@tailwindcss/cli": "^4.1.11",
|
"@tailwindcss/cli": "^4.1.8",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"eleventy-plugin-embed-everything": "^1.21.0",
|
"eleventy-plugin-embed-everything": "^1.21.0",
|
||||||
"eleventy-plugin-icons": "^4.5.3",
|
"eleventy-plugin-icons": "^4.5.3",
|
||||||
"eleventy-plugin-metagen": "^1.8.3",
|
"eleventy-plugin-metagen": "^1.8.3",
|
||||||
"eleventy-plugin-og-image": "^4.1.0",
|
"eleventy-plugin-og-image": "^4.0.1",
|
||||||
"eleventy-plugin-robotstxt": "^1.0.0",
|
"eleventy-plugin-robotstxt": "^1.0.0",
|
||||||
"eleventy-plugin-tailwindcss-4": "^2.0.1",
|
"eleventy-plugin-tailwindcss-4": "^2.0.1",
|
||||||
"lightningcss-cli": "^1.30.1",
|
|
||||||
"markdown-it-abbr": "^2.0.0",
|
"markdown-it-abbr": "^2.0.0",
|
||||||
"markdown-it-anchor": "^9.2.0",
|
"markdown-it-anchor": "^9.2.0",
|
||||||
"markdown-it-collapsible": "^2.0.2",
|
"markdown-it-collapsible": "^2.0.2",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue