Skip to content

fix: Avoid deprecated properties in goreleaser integration config #362

fix: Avoid deprecated properties in goreleaser integration config

fix: Avoid deprecated properties in goreleaser integration config #362

Workflow file for this run

name: build-docs
on:
pull_request:
branches: [ main ]
paths:
- 'docs/**'
- 'cmd/**'
- 'core/**'
- '*/CHANGELOG.md'
workflow_dispatch:
inputs:
deploy:
description: 'deploy the built docs'
type: boolean
default: false
required: false
jobs:
build:
name: Build Docs
runs-on: ubuntu-20.04
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: 'latest'
extended: true
- name: Build docs
run: |
go run main.go gen
awk 'NR > 1' CHANGELOG.md >> docs/content/guide/changelog/index.md
hugo --minify -s docs -b https://changie.dev/
- name: Deploy Docs
if: "${{ github.event.inputs.deploy }}"
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
cname: changie.dev