website-hugo/.github/workflows/main.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 15: mapping key "uses" already defined at line 14

30 lines
557 B
YAML

name: Build and Publish Artifact
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/setup-go@v5
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.122.0'
extended: true
- name: Build
run: hugo --minify
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: website
path: public/