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