Fix build in new Hugo versions, use mise to sync versions in CLI and CI #13
@@ -33,6 +33,12 @@ jobs:
|
|||||||
submodules: recursive # Get submdules
|
submodules: recursive # Get submdules
|
||||||
fetch-depth: 1 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 1 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|
||||||
|
- name: Setup required tools (Hugo)
|
||||||
|
uses: https://github.com/jdx/mise-action@e79ddf65a11cec7b0e882bedced08d6e976efb2d # v3.6.2
|
||||||
|
with:
|
||||||
|
cache: false # no cache on gitea
|
||||||
|
github_token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Create configuration for Matomo
|
- name: Create configuration for Matomo
|
||||||
run: |
|
run: |
|
||||||
cp themes/hugo-sustain/static/config.php.sample static/config.php
|
cp themes/hugo-sustain/static/config.php.sample static/config.php
|
||||||
@@ -40,12 +46,6 @@ jobs:
|
|||||||
sed -i "s|__PROXY_URL__|${{ secrets.MATOMO_PROXY_URL }}|" static/config.php
|
sed -i "s|__PROXY_URL__|${{ secrets.MATOMO_PROXY_URL }}|" static/config.php
|
||||||
sed -i "s|__TOKEN_AUTH__|${{ secrets.MATOMO_TOKEN_AUTH }}|" static/config.php
|
sed -i "s|__TOKEN_AUTH__|${{ secrets.MATOMO_TOKEN_AUTH }}|" static/config.php
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: https://github.com/peaceiris/actions-hugo@v3.0.0
|
|
||||||
with:
|
|
||||||
hugo-version: "0.155.3"
|
|
||||||
extended: true
|
|
||||||
|
|
||||||
- name: Build website with Hugo
|
- name: Build website with Hugo
|
||||||
run: hugo
|
run: hugo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user