revert back to old install via actions
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m34s
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 1m34s
This commit is contained in:
parent
256510155c
commit
9cc4bd08de
1 changed files with 13 additions and 23 deletions
|
|
@ -5,11 +5,6 @@ on:
|
|||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
HUGO_VERSION: '0.121.2'
|
||||
GO_VERSION: '1.20.5'
|
||||
NODE_VERSION: '20.0.0'
|
||||
|
||||
jobs:
|
||||
buildAndDeploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -26,13 +21,10 @@ jobs:
|
|||
- name: Echo environment
|
||||
run: echo "Environment is ${{ steps.read_toml.outputs.value }}"
|
||||
|
||||
- name: Install Go
|
||||
run: |
|
||||
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz"
|
||||
tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz
|
||||
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV
|
||||
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz
|
||||
go version
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5.0.0
|
||||
with:
|
||||
go-version: '1.20.5'
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v3
|
||||
|
|
@ -48,9 +40,6 @@ jobs:
|
|||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Cache Node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
@ -59,17 +48,18 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ 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
|
||||
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
|
||||
run: hugo --minify
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue