Skip to content

Commit

Permalink
fetch-depth can be ommited
Browse files Browse the repository at this point in the history
  • Loading branch information
NotLe0n authored Jun 2, 2024
1 parent 89ccdf3 commit 51bf413
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,25 @@ jobs:
steps:
- name: Setup Go environment
uses: actions/setup-go@v5

- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 1

- name: Generate stdlib articles
run: go run ./gen

- 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: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
Expand All @@ -61,6 +65,7 @@ jobs:
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 51bf413

Please sign in to comment.