screenwriter icon indicating copy to clipboard operation
screenwriter copied to clipboard

Add GitHub Actions workflows for GitHub Pages and Firebase Hosting deployment

Open Copilot opened this issue 3 months ago • 2 comments

Adds automated deployment pipelines to GitHub Pages and Firebase Hosting.

Changes

Workflows (.github/workflows/)

  • deploy-github-pages.yml - Builds and deploys to GitHub Pages on push to master
  • deploy-firebase.yml - Builds and deploys to Firebase Hosting on push to master

Both workflows:

  • Install npm + bower dependencies
  • Compile SCSS → CSS and JSX → JS via gulp
  • Support manual triggering via workflow_dispatch
  • Use explicit permissions (CodeQL validated)

Configuration

  • firebase.json - Hosting config, excludes source files (.scss, .jsx, etc.)
  • .gitignore - Excludes .firebase/ and .firebaserc

Required Secrets

GitHub Pages: None (uses built-in GITHUB_TOKEN)

Firebase Hosting:

  • FIREBASE_SERVICE_ACCOUNT - JSON service account key from Firebase Console → Project Settings → Service Accounts
  • FIREBASE_PROJECT_ID - Project ID from Firebase Console → Project Settings → General

Enable GitHub Pages via Settings → Pages → Source: "GitHub Actions"

Original prompt

create github actions that deploy to github-pages and to firebase-hosting. let me know what secrets to add and how to get them


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot avatar Nov 11 '25 03:11 Copilot