mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-20 03:11:53 +02:00
add netlify new configs and remove firebase ga
This commit is contained in:
parent
59e24f4a51
commit
069db2b8cf
3 changed files with 8 additions and 77 deletions
38
.github/workflows/firebase-preview.yml
vendored
38
.github/workflows/firebase-preview.yml
vendored
|
@ -1,38 +0,0 @@
|
||||||
name: Deploy Preview to Firebase
|
|
||||||
'on': pull_request
|
|
||||||
jobs:
|
|
||||||
build_and_preview:
|
|
||||||
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Hugo setup
|
|
||||||
uses: peaceiris/actions-hugo@v3.0.0
|
|
||||||
with:
|
|
||||||
hugo-version: 0.140.2
|
|
||||||
extended: true
|
|
||||||
env:
|
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
||||||
|
|
||||||
- name: Build with Hugo
|
|
||||||
env:
|
|
||||||
# For maximum backward compatibility with Hugo modules
|
|
||||||
HUGO_ENVIRONMENT: production
|
|
||||||
HUGO_ENV: production
|
|
||||||
run: |
|
|
||||||
hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page
|
|
||||||
|
|
||||||
- name: Deploy preview
|
|
||||||
uses: FirebaseExtended/action-hosting-deploy@v0
|
|
||||||
with:
|
|
||||||
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
||||||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}'
|
|
||||||
expires: 30d
|
|
||||||
channelId: preview-${{ github.event.number }}
|
|
||||||
projectId: blowfish-21fff
|
|
39
.github/workflows/firebase-production.yml
vendored
39
.github/workflows/firebase-production.yml
vendored
|
@ -1,39 +0,0 @@
|
||||||
name: Deploy Production to Firebase
|
|
||||||
'on':
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
jobs:
|
|
||||||
build_and_deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Hugo setup
|
|
||||||
uses: peaceiris/actions-hugo@v3.0.0
|
|
||||||
with:
|
|
||||||
hugo-version: 0.140.2
|
|
||||||
extended: true
|
|
||||||
env:
|
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
||||||
|
|
||||||
- name: Build with Hugo
|
|
||||||
env:
|
|
||||||
# For maximum backward compatibility with Hugo modules
|
|
||||||
HUGO_ENVIRONMENT: production
|
|
||||||
HUGO_ENV: production
|
|
||||||
run: |
|
|
||||||
hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page
|
|
||||||
|
|
||||||
- name: Deploy Production
|
|
||||||
uses: FirebaseExtended/action-hosting-deploy@v0
|
|
||||||
with:
|
|
||||||
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
||||||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}'
|
|
||||||
channelId: live
|
|
||||||
projectId: blowfish-21fff
|
|
8
netlify.toml
Normal file
8
netlify.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[build]
|
||||||
|
command = "cd exampleSite && hugo --gc --minify -D -b https://blowfish.page"
|
||||||
|
publish = "exampleSite/public"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
HUGO_VERSION = "0.142.0"
|
||||||
|
HUGO_THEMESDIR = "../.."
|
||||||
|
HUGO_THEME = "repo"
|
Loading…
Add table
Reference in a new issue