From 1a4eb8f3605ce36de590724763ad6cfb170cb66d Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 2 Sep 2025 10:49:14 +0200 Subject: [PATCH] Added simple astrojs 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..2d1fc3e --- /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 + npm run build + + # Deploy + rm -rf /var/www/sites/dave-dmg/blog/* + cp -r dist/* /var/www/sites/dave-dmg/blog/ \ No newline at end of file