ci: add Forgejo Actions deploy workflow
Some checks failed
Build and Deploy / deploy (push) Failing after 4s
Some checks failed
Build and Deploy / deploy (push) Failing after 4s
This commit is contained in:
parent
9ba17b2452
commit
97de2633e6
1 changed files with 19 additions and 0 deletions
19
.forgejo/workflows/deploy.yml
Normal file
19
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
name: Build and Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build site
|
||||
run: python3 build.py
|
||||
|
||||
- name: Deploy to nginx docroot
|
||||
run: |
|
||||
rsync -av --delete site/ /home/opc/zai-home-base/sites/helpme-tips/
|
||||
echo "Deployed at $(date)"
|
||||
Loading…
Reference in a new issue