blog/.forgejo/workflows/cd.yml

26 lines
608 B
YAML
Raw Normal View History

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"