revert back to old install via actions
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m34s

This commit is contained in:
Andreas Hnida 2024-04-18 22:03:35 +02:00
commit 9cc4bd08de

View file

@ -5,11 +5,6 @@ on:
branches: branches:
- main - main
env:
HUGO_VERSION: '0.121.2'
GO_VERSION: '1.20.5'
NODE_VERSION: '20.0.0'
jobs: jobs:
buildAndDeploy: buildAndDeploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,13 +21,10 @@ jobs:
- name: Echo environment - name: Echo environment
run: echo "Environment is ${{ steps.read_toml.outputs.value }}" run: echo "Environment is ${{ steps.read_toml.outputs.value }}"
- name: Install Go - name: Set up Go
run: | uses: actions/setup-go@v5.0.0
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz" with:
tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz go-version: '1.20.5'
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz
go version
- name: Cache Go modules - name: Cache Go modules
uses: actions/cache@v3 uses: actions/cache@v3
@ -48,9 +40,6 @@ jobs:
node-version: '20' node-version: '20'
cache: 'npm' cache: 'npm'
- name: Install npm dependencies
run: npm install
- name: Cache Node modules - name: Cache Node modules
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -59,17 +48,18 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- name: Install Hugo
run: |
curl -LO "https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz"
tar -xvf hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
mv hugo /usr/local/bin/
rm hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
hugo version
- name: Setup Project - name: Setup Project
run: npm run project-setup run: npm run project-setup
- name: Install npm dependencies
run: npm install
- name: Set up Hugo Extended
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: '0.121.2'
extended: true
- name: Build Hugo site - name: Build Hugo site
run: hugo --minify run: hugo --minify