Skip to content

Commit

Permalink
fix: fetch depth 0 and remove duplicate npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq-naufal committed Jun 28, 2024
1 parent 8d4d740 commit a218782
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Deploy inLive Website to Github Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -52,13 +53,12 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: "Install node modules"
run: "npm install && npm install postcss-cli"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
Expand Down

0 comments on commit a218782

Please sign in to comment.