Compare commits

...

4 Commits

Author SHA1 Message Date
b4dcd3953d Fixed build script
All checks were successful
Deploy Blog to Folder / deploy (push) Successful in 3s
2025-07-05 20:56:26 -04:00
e17670ea83 Simplified deploy script
Some checks failed
Deploy Blog to Folder / deploy (push) Failing after 5s
2025-07-05 20:55:21 -04:00
b6bb70f63b Updated deployment script, correct build command
All checks were successful
Deploy Blog to Folder / deploy (push) Successful in 1s
2025-07-05 20:53:17 -04:00
ea4a4c805a Reverting separate repository for deployment changes
All checks were successful
Deploy Blog to Folder / deploy (push) Successful in 1s
2025-07-05 20:47:11 -04:00
2 changed files with 4 additions and 12 deletions

View File

@ -10,26 +10,18 @@ jobs:
runs-on: host
steps:
- name: Skip deployment if commit starts with "nodeploy"
uses: Cyper/GiteaActions/skip-if-commit-prefix@main
with:
prefix: nodeploy
- name: Checkout code
if: env.should_deploy == 'true'
uses: actions/checkout@v3
- name: Build site
if: env.should_deploy == 'true'
run: |
cd ./src
npx @11ty/eleventy
npm run build
echo "Site built successfully."
- name: Deploy folder
if: env.should_deploy == 'true'
run: |
echo "Cleaning old site files..."
rm -rf /var/sites/cy.cyper.cc/www/html/*
echo "Deploying new site files from src/_site folder..."
mv ./src/_site/* /var/sites/cy.cyper.cc/www/html
mv ./_site/* /var/sites/cy.cyper.cc/www/html

View File

@ -4,7 +4,7 @@
"description": "My personal blog",
"scripts": {
"start": "npx @11ty/eleventy --input ./src --serve",
"build": "npx @11ty/eleventy --input .src",
"build": "npx @11ty/eleventy --input ./src",
"clean": "rm -rf {_site,./src/_site}"
},
"repository": {