29 lines
No EOL
606 B
YAML
29 lines
No EOL
606 B
YAML
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:bubo
|
|
|
|
- name: Deploy to web root
|
|
run: |
|
|
rsync -avz --delete --exclude='.git' --exclude='.forgejo' \
|
|
./public/ /var/www/bubo/ |