mirror of
https://github.com/PrivSec-dev/privsec.dev.git
synced 2025-05-02 06:16:19 -04:00
Autofetch blog posts
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
fc566a0e8f
commit
0befdf3fe5
3 changed files with 12 additions and 2 deletions
5
.github/workflows/firebase-hosting-merge.yml
vendored
5
.github/workflows/firebase-hosting-merge.yml
vendored
|
@ -7,7 +7,7 @@ name: Deploy to Firebase Hosting on merge
|
|||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
Build_and_Deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -16,6 +16,9 @@ jobs:
|
|||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
- name: Fecth External Blog
|
||||
run: ./external-blogs.sh
|
||||
|
||||
- name: Hugo setup
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
name: Deploy to Firebase Hosting on PR
|
||||
'on': pull_request
|
||||
jobs:
|
||||
build_and_preview:
|
||||
Build_and_Preview:
|
||||
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -14,6 +14,9 @@ jobs:
|
|||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
- name: Fecth External Blog
|
||||
run: ./external-blogs.sh
|
||||
|
||||
- name: Hugo setup
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue