mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
e1ead4dbca
Note that this commit has nothing to do with "Hugo not working with Go 1.17", but this is the simplest fix of some build related issues in Hugo 0.88.0. Updates #8952 Updates #8955
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
defaults: &defaults
|
|
docker:
|
|
- image: bepsays/ci-goreleaser:1.16.7
|
|
environment:
|
|
CGO_ENABLED: "0"
|
|
|
|
version: 2
|
|
jobs:
|
|
build:
|
|
<<: *defaults
|
|
steps:
|
|
- checkout:
|
|
path: hugo
|
|
- run:
|
|
command: |
|
|
git clone git@github.com:gohugoio/hugoDocs.git
|
|
cd hugo
|
|
go mod download
|
|
sleep 5
|
|
go mod verify
|
|
go test -p 1 ./...
|
|
- persist_to_workspace:
|
|
root: .
|
|
paths: .
|
|
release:
|
|
<<: *defaults
|
|
steps:
|
|
- attach_workspace:
|
|
at: /root/project
|
|
- run:
|
|
command: |
|
|
cd hugo
|
|
git config --global user.email "bjorn.erik.pedersen+hugoreleaser@gmail.com"
|
|
git config --global user.name "hugoreleaser"
|
|
go run -tags release main.go release -r ${CIRCLE_BRANCH}
|
|
|
|
workflows:
|
|
version: 2
|
|
release:
|
|
jobs:
|
|
- build:
|
|
filters:
|
|
branches:
|
|
only: /release-.*/
|
|
- hold:
|
|
type: approval
|
|
requires:
|
|
- build
|
|
- release:
|
|
context: org-global
|
|
requires:
|
|
- hold
|