depolouych anges
All checks were successful
/ deploy (push) Successful in 15s

This commit is contained in:
gablaxy 2026-02-25 15:41:02 +01:00
parent 941c1abf5b
commit d8b7053fb5

View file

@ -3,30 +3,25 @@ on:
branches: branches:
- main - main
schedule: schedule:
- cron: '0 * * * *' # every hour - cron: '0 * * * *'
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
volumes: volumes:
- /var/www/bubo:/var/www/bubo - /var/www/bubo:/mnt/deploy
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install
- name: Install rsync - name: Install rsync
run: apt-get update && apt-get install -y rsync run: apt-get update && apt-get install -y rsync
- name: Build Bubo - name: Build Bubo
run: npm run build:bubo run: npm run build:bubo
- name: List built files
- name: Ensure target directory exists run: ls -la ./public/
run: mkdir -p /var/www/bubo
- name: Deploy to web root - name: Deploy to web root
run: | run: |
rsync -avz --delete --exclude='.git' --exclude='.forgejo' \ rsync -avz --delete --exclude='.git' --exclude='.forgejo' \
./public/ /var/www/bubo/ ./public/ /mnt/deploy/
chmod -R 755 /mnt/deploy