research-notes/scripts/upload-asset.sh
jordan ec0b89206f
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: add audio playback and enhanced note UI with sidebar navigation
- Add AudioSection component with media player and waveform visualization
- Add NoteContent component with inline link support and syntax highlighting
- Add NoteSidebar with collapsible sections for navigation
- Add SidebarContext for managing sidebar state
- Update note page layout to use new component architecture
- Add assets utility for GCS audio/video URL generation
- Update content library with audio/skill/prompt type support
- Add vision.md with editorial guidelines
- Update .gitignore with additional security patterns
- Add upload-asset.sh script for GCS asset management

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 11:08:25 -07:00

17 lines
434 B
Bash
Executable File

#!/bin/bash
set -e
BUCKET="orchard9-assets"
PREFIX="research-notes"
LOCAL_FILE="$1"
REMOTE_PATH="$2"
[[ -z "$LOCAL_FILE" || -z "$REMOTE_PATH" ]] && {
echo "Usage: $0 <local-file> <remote-path>"
echo "Example: $0 ./audio.m4a audio/notes/003-research-planning/audio.m4a"
exit 1
}
gcloud storage cp "$LOCAL_FILE" "gs://${BUCKET}/${PREFIX}/${REMOTE_PATH}"
echo "https://storage.googleapis.com/${BUCKET}/${PREFIX}/${REMOTE_PATH}"