This commit is contained in:
28
.gitea/workflows/deploy.yaml
Normal file
28
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Deploy website
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: [ self-hosted, docker ]
|
||||
container:
|
||||
image: node:20-bullseye # <-- has Node for actions/checkout
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install rsync
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y rsync
|
||||
|
||||
- name: Debug where we are
|
||||
run: |
|
||||
echo "PWD: $(pwd)"
|
||||
ls -la /
|
||||
|
||||
# (add your build step here if needed)
|
||||
|
||||
- name: Sync to Caddy root
|
||||
run: rsync -a --delete --exclude '.git' ./ /deploy/maxiwebsite/
|
||||
1
index.html
Normal file
1
index.html
Normal file
@@ -0,0 +1 @@
|
||||
Hello world
|
||||
Reference in New Issue
Block a user