This commit is contained in:
parent
0ea4c5179c
commit
0b92f900db
4 changed files with 75 additions and 22 deletions
31
.forgejo/workflows/nightly.yml
Normal file
31
.forgejo/workflows/nightly.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: Nightly
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: nix shell nixpkgs#mdbook --command ./deploy.sh build
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
retention-days: 1
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
- name: Deploy
|
||||
run: nix shell nixpkgs#rsync --command ./deploy.sh local
|
||||
Loading…
Add table
Add a link
Reference in a new issue