feat: Add a Forgejo Actions pipeline
Added a Forgejo Actions CI/CD pipeline to supersede the manual deploy.sh, automating builds and deployments on push.
This commit is contained in:
parent
e1801e257b
commit
8a843b832a
2 changed files with 36 additions and 10 deletions
17
.forgejo/workflows/deploy.yaml
Normal file
17
.forgejo/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Deploy
|
||||
run: nix shell nixpkgs#mdbook --command ./deploy.sh local
|
||||
Loading…
Add table
Add a link
Reference in a new issue