Moved the Copper Chronicle and resume into a private git submodule (src/private), visible only to authenticated users. Added a lock symbol to the mdbook sidebar for restricted sections. Reorganized nginx/nix configuration files into a dedicated folder. Removed one-line descriptions from the menu. Reduced custom CSS to better align the main website's theme with mdbook's native styling. Personalized the index and blog introduction pages.
26 lines
No EOL
581 B
YAML
26 lines
No EOL
581 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 book/ /srv/www/binning.net/
|
|
printf "✓ Local deployment complete!\n" |