Last active
January 4, 2023 09:51
-
-
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..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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