Test CI/CD Deploy
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 1m15s
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 1m15s
This commit is contained in:
22
.gitea/workflows/deploy.yml
Normal file
22
.gitea/workflows/deploy.yml
Normal file
@@ -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/
|
||||||
Reference in New Issue
Block a user