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