This commit is contained in:
parent
4f561a0abd
commit
5fd1db33e1
30
.gitea/workflows/astro.yml
Normal file
30
.gitea/workflows/astro.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Deploy Astro
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- astro
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
name: Build and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout code
|
||||||
|
- name: Setup node and npm
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 21
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Check and build
|
||||||
|
run: npm run build
|
||||||
|
- name: Copy files via ssh
|
||||||
|
uses: https://github.com/appleboy/scp-action@v0.1.4
|
||||||
|
with:
|
||||||
|
host: c0ntroller.de
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
source: "dist/*"
|
||||||
|
target: /var/www/website/astro
|
||||||
|
strip_components: 1
|
Loading…
Reference in New Issue
Block a user