Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pulimento/github-action-hugo-deploy-to-firebase
GitHub action to build a Hugo site and deploy it to Firebase Hosting
https://github.com/pulimento/github-action-hugo-deploy-to-firebase
action blog firebase hugo static-site-generator
Last synced: about 1 month ago
JSON representation
GitHub action to build a Hugo site and deploy it to Firebase Hosting
- Host: GitHub
- URL: https://github.com/pulimento/github-action-hugo-deploy-to-firebase
- Owner: pulimento
- Created: 2019-09-24T09:15:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-02T23:09:08.000Z (almost 5 years ago)
- Last Synced: 2024-11-15T12:07:40.940Z (about 2 months ago)
- Topics: action, blog, firebase, hugo, static-site-generator
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 11
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action - Hugo and Firebase
This GitHub action build a [Hugo](https://gohugo.io) site, and uploads it to [Firebase Hosting](https://firebase.google.com/docs/hosting/)
- Hugo is a popular static-site generator, that allows you to create a template-based site, and your content is written in Markdown
- Firebase hosting is a cheap option to host your static sites (it has nice things, as a CDN and free HTTPs certs). It's not even needed, you can get the same with [GitHub Pages](https://pages.github.com/)It needs a Firebase token. You can obtain it installing [firebase-tools](https://github.com/firebase/firebase-tools) and doing `firebase login-ci`.
As the Firebase token is sensitive info, you must save it in a [GitHub secret](https://help.github.com/es/articles/virtual-environments-for-github-actions#naming-conventions)
A simple workload using this action would be something like:
````
on: [push]
name: Publish blog
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: pulimento/github-action-hugo-deploy-to-firebase@master
with:
firebase-token: ${{ secrets.secret_firebase_token }}
alias: ${{ some_alias }} // OPTIONAL
````Happy hacking!