My dream of a fully automated smart deployment system for this blog has crumpled before my eyes like the skyline in Fight Club. Deploying to Firebase in GitHub actions was never gonna work because the site’s media folder isn’t synced to the repo! Even if I set up some sort of Docker deployment containing rClone, the reauthentication and media download that’d be needed for each new image seems wasteful and silly.
Therefore, I needed to take a few steps back. I disabled the Firebase deployments in GitHub Actions and made it so that my npm run commit
script deploys the site from my PC. The script works—I just hope I can avoid having to constantly switch between my Firebase accounts because of work. I thought about it some more after the other day and I think I’ll be fine since my work project uses Google Auth but deploys from Vercel via GitHub rather than from Firebase.
Because my npm run commit
script does everything I need, I got rid of my husky pre-commit hook. Finally, as a last tweak for the evening, I made it so that my index page always links to my latest post.
Tags: devops firebase github deployment