ci: add Forgejo Actions deploy workflow
Some checks failed
Build and Deploy / deploy (push) Failing after 1m33s
Some checks failed
Build and Deploy / deploy (push) Failing after 1m33s
This commit is contained in:
parent
67cb8b69c6
commit
e13bf0f051
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/bestdadjokes/
|
||||||
|
echo "Deployed at $(date)"
|
||||||
Loading…
Reference in a new issue