blog/.forgejo/workflows/cd.yml
Matthew Binning b8687a1bc7
All checks were successful
CI / build (push) Successful in 11s
CI / deploy (push) Successful in 5s
feat: Use assets outside of repo
2026-04-04 16:40:14 -07:00

26 lines
No EOL
608 B
YAML

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:
name: blog-${{ github.sha }}
path: book/
- name: Deploy
run: |
nix shell nixpkgs#rsync --command rsync -av --delete --filter='protect assets/' book/ /srv/www/binning.net/
printf "✓ Local deployment complete!\n"