From 3422126019c04dd1556fa2708b02f950bcca3954 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 15 Sep 2025 10:39:35 +0200 Subject: [PATCH] Test CI/CD Deploy --- .gitea/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..6e6ca28 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Build and Deploy Astro Site + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build and deploy + run: | + npm install + mv src/app/\(cms\) src/app/_cms + npm run build + # Deploy + rm -rf /var/www/sites/dave-dmg/blog/* + cp -r out/* /var/www/sites/dave-dmg/blog/ \ No newline at end of file