Added simple static deploy
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 1m7s
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 1m7s
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
|
||||
npm run build
|
||||
|
||||
# Deploy
|
||||
rm -rf /var/www/sites/dave-dmg/blog/*
|
||||
cp -r dist/* /var/www/sites/dave-dmg/blog/
|
||||
Reference in New Issue
Block a user