2026-03-26 14:11:59 -07:00
|
|
|
name: CD
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
inputs:
|
|
|
|
|
target:
|
|
|
|
|
description: "Deployment target"
|
|
|
|
|
required: true
|
|
|
|
|
type: choice
|
|
|
|
|
options:
|
|
|
|
|
- staging
|
|
|
|
|
- prod
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
deploy:
|
|
|
|
|
runs-on: self-hosted
|
|
|
|
|
steps:
|
|
|
|
|
- name: Download artifact
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
with:
|
2026-04-04 11:48:33 -07:00
|
|
|
name: blog-${{ github.sha }}
|
|
|
|
|
path: book/
|
2026-03-26 14:11:59 -07:00
|
|
|
- name: Deploy
|
2026-04-04 11:48:33 -07:00
|
|
|
run: |
|
2026-04-04 16:32:51 -07:00
|
|
|
nix shell nixpkgs#rsync --command rsync -av --delete --filter='protect assets/' book/ /srv/www/binning.net/
|
2026-04-04 11:48:33 -07:00
|
|
|
printf "✓ Local deployment complete!\n"
|