Skip to content

fix workflow

fix workflow #9

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.108.0'
extended: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run:
- npm ci

Check failure on line 35 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Deploy to Github Pages

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 35, Col: 11): A sequence was not expected
- hugo --minify --gc
- name: Deploy page
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./public
# keep_files: true
publish_branch: gh-pages
cname: sogno.energy