test
Some checks failed
Deploy Hugo site to Pages / build (push) Failing after 2s

This commit is contained in:
Mans Ziesel 2023-06-12 22:15:41 +02:00
parent a01f92b911
commit 675ea81283

View File

@ -21,32 +21,19 @@ jobs:
env: env:
HUGO_VERSION: 0.108.0 HUGO_VERSION: 0.108.0
steps: 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 \
&& dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: snap install dart-sass-embedded
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v3 uses: actions/checkout@v3
with: with:
submodules: recursive fetch-depth: 0
- name: Setup Pages
id: pages - name: hugo
uses: https://github.com/actions/configure-pages@v3 uses: klakegg/actions-hugo@1.0.0
- name: Install Node.js dependencies with:
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" version: latest
- name: Build with Hugo image: asciidoctor-ci
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact - name: Upload artifact
uses: https://github.com/actions/upload-pages-artifact@v1 uses: https://github.com/actions/upload-artifact@v3
with: with:
path: ./public path: ./public