Skip to content

Commit

Permalink
gha setup
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoho committed Jan 14, 2024
1 parent 289861f commit a8439b3
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sitemap.xml,1705259065383,7a19765a382394efa0b0c4f1d43082d2946319372b574e82611826f71bc05b5c
404.html,1705259065384,cc9cb40faff34a8e4e994d4899855c9ea93a85783325a181f230fff9edb2db68
index.html,1705259065382,0187a25999f2827180a232b28755001ba0d77ef862f4f4d31633c59d673e7e85
index.xml,1705259065384,5e0a9d835049b00d3687aebd17ab6f0b8465f96f28223c4567b2ddeaf7e3986c
categories/index.html,1705259065382,6cdab7a04243fc6163ded973304f4ac16b6dad99231b878dab944e79278802cc
style.3cbf0d545bb842cfc43504a0ade5ec222d421ffe41922506b1cd1d8e3472b860.css,1705259065381,187ef4d8978ed81863a70749c5369c731a945b9aff9490548ee903635fd3f8b0
categories/index.xml,1705259065384,464857a469ae0610fd3bf36792e9f912044065822773350c009052f66da2e137
tags/index.html,1705259065382,5980dc56d6ea125f2124953d51a05a978e0d3a075b775d7caa9d4dd03cb781e5
tags/index.xml,1705259065385,16dc1625e95bf491c614204c8821d6bb5961f4387a97d0744f6eeea5d966f641
images/christmas-spirit-day.avif,1705080636368,0a73dcbdf04fe6403b9d361827be3e2c2b7dea1442011ff0a59e1fa9b2344bc5
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "gloria-deo"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- trunk
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd hugo && hugo --minify
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GLORIA_DEO }}'
channelId: live
projectId: gloria-deo
17 changes: 17 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd hugo && hugo --minify
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GLORIA_DEO }}'
projectId: gloria-deo
Binary file modified bun.lockb
Binary file not shown.
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
11 changes: 6 additions & 5 deletions hugo/assets/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ body {
// outline: 1px solid red;
// }

h1,
h2 {
font-weight: var(--font-weight-8);
}

.logo-letter {
fill: var(--color-12);
}
Expand Down Expand Up @@ -71,8 +66,14 @@ h2 {

.title,
.subtitle {
font-weight: var(--font-weight-5);
color: var(--gray-4);
}

.title {
line-height: 1.05;
margin-block-end: var(--size-fluid-1);
}
}

.main > * {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"devDependencies": {
"@types/bun": "latest",
"firebase-tools": "^13.0.3",
"prettier": "^3.1.1",
"prettier-plugin-go-template": "^0.0.15"
},
Expand Down

0 comments on commit a8439b3

Please sign in to comment.