Files
CyBySide/.gitea/workflows/deploy.yaml
Cyper 75b67b2c14
Some checks failed
Deploy Blog to Folder / deploy (push) Failing after 0s
nodeploy: Switched to action repo
2025-06-20 17:23:21 -04:00

36 lines
827 B
YAML

name: Deploy Blog to Folder
on:
push:
branches:
- main
jobs:
deploy:
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
- 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