Added simple static deploy
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 1m7s

This commit is contained in:
2025-09-09 21:38:56 +02:00
parent 485b57b847
commit 21ea6d26ac
2 changed files with 38 additions and 8 deletions

View 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/

24
.idea/workspace.xml generated
View File

@@ -40,18 +40,18 @@
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"prettierjs.PrettierConfiguration.Package": "/Users/dave/projects/dave-dmg/blog/node_modules/prettier",
"settings.editor.selected.configurable": "settings.javascript.prettier",
"settings.editor.selected.configurable": "settings.javascript.linters.eslint",
"ts.external.directory.path": "/Users/dave/projects/dave-dmg/blog/node_modules/typescript/lib",
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src" />
<recent name="$PROJECT_DIR$/configs/collections" />
<recent name="$PROJECT_DIR$" />
<recent name="$PROJECT_DIR$/keystatic/collections" />
<recent name="$PROJECT_DIR$/keystatic/collections/system" />
<recent name="$PROJECT_DIR$/src/components/Markdoc" />
<recent name="$PROJECT_DIR$/src/components" />
<recent name="$PROJECT_DIR$/src/components/markdoc" />
<recent name="$PROJECT_DIR$/src/styles" />
<recent name="$PROJECT_DIR$/src/app/keystatic" />
</key>
</component>
<component name="RunManager" selected="npm.Next.js: server-side">
@@ -84,7 +84,7 @@
<option name="presentableId" value="Default" />
<updated>1756802819394</updated>
<workItem from="1756802820524" duration="57336000" />
<workItem from="1756985956072" duration="2091000" />
<workItem from="1756985956072" duration="111716000" />
</task>
<task id="LOCAL-00001" summary="Added simple astrojs deploy">
<option name="closed" value="true" />
@@ -150,7 +150,15 @@
<option name="project" value="LOCAL" />
<updated>1756909004310</updated>
</task>
<option name="localTasksCounter" value="9" />
<task id="LOCAL-00009" summary="Added a baseline style for most elements">
<option name="closed" value="true" />
<created>1756988069769</created>
<option name="number" value="00009" />
<option name="presentableId" value="LOCAL-00009" />
<option name="project" value="LOCAL" />
<updated>1756988069769</updated>
</task>
<option name="localTasksCounter" value="10" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">