Fix build (#724)
Signed-off-by: hossainemruz <hossainemruz@gmail.com> Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
95ecdfb83c
commit
374b4019d8
1 changed files with 12 additions and 6 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
@ -6,7 +6,7 @@ on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# checkout to the commit that has been pushed
|
# checkout to the commit that has been pushed
|
||||||
- uses: actions/checkout@v3.2.0
|
- uses: actions/checkout@v3.2.0
|
||||||
|
@ -14,15 +14,21 @@ jobs:
|
||||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|
||||||
# install Hugo
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Install node modules
|
||||||
|
run: npm install
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2.6.0
|
uses: peaceiris/actions-hugo@v2.6.0
|
||||||
with:
|
with:
|
||||||
hugo-version: 'latest'
|
hugo-version: 'latest'
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
# build website
|
|
||||||
- name: Create Config
|
|
||||||
run: touch config.toml
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify
|
run: |
|
||||||
|
cd exampleSite
|
||||||
|
hugo --minify
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue