From 17ae2f4f0a64c499dfc9e532ed9b7abd9665c4c3 Mon Sep 17 00:00:00 2001 From: igor-baiborodine Date: Sun, 5 May 2024 17:34:39 -0400 Subject: [PATCH] chore: add install Hugo CLI step --- .github/workflows/upload-data-to-algolia-index.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upload-data-to-algolia-index.yml b/.github/workflows/upload-data-to-algolia-index.yml index e6222f48..ffe79afd 100644 --- a/.github/workflows/upload-data-to-algolia-index.yml +++ b/.github/workflows/upload-data-to-algolia-index.yml @@ -11,20 +11,21 @@ jobs: env: HUGO_VERSION: 0.109.0 steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Git Checkout uses: actions/checkout@v2 with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: '14' - - name: Build Site run: hugo - - name: Upload Data working-directory: ./algolia run: |