Skip to content

Instantly share code, notes, and snippets.

@scottyab
Last active January 4, 2023 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottyab/b98e33fd2f0e35d7b1ab539ac8184142 to your computer and use it in GitHub Desktop.
Save scottyab/b98e33fd2f0e35d7b1ab539ac8184142 to your computer and use it in GitHub Desktop.
Github action used on Scottyab.com to Build Jekyll and Deploy to Firebase Hosting when commits pushed to main. `GITHUB_TOKEN`, `FIREBASE_PROJECT_ID`, `FIREBASE_SERVICE_ACCOUNT` will vary for your setup and need to be configured via Githuib repo settings..
name: Build and Deploy to Firebase
'on':
push:
branches:
- main
jobs:
build_and_deploy:
name: Build and deploy Jekyll site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Jekyll
uses: jerryjvl/jekyll-build-action@v1
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
channelId: live
projectId: '${{ secrets.FIREBASE_PROJECT_ID }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment