Skip to content

Commit 9458163

Browse files
authored
Create README.md
1 parent 865125f commit 9458163

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# GitHub Action - Hugo and Firebase
2+
3+
This GitHub action build a [Hugo](https://gohugo.io) site, and uploads it to [Firebase Hosting](https://firebase.google.com/docs/hosting/)
4+
5+
- Hugo is a popular static-site generator, that allows you to create a template-based site, and your content is written in Markdown
6+
- 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/)
7+
8+
It needs a Firebase token. You can obtain it installing [firebase-tools](https://github.com/firebase/firebase-tools) and doing `firebase login-ci`.
9+
10+
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)
11+
12+
A simple workload using this action would be something like:
13+
14+
````
15+
on: [push]
16+
name: Publish blog
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v1
22+
with:
23+
submodules: true
24+
- uses: pulimento/github-action-hugo-deploy-to-firebase@master
25+
with:
26+
firebase-token: ${{ secrets.secret_firebase_token }}
27+
````
28+
29+
Happy hacking!

0 commit comments

Comments
 (0)