github.com/dominikszabo/hugo-ds-clean@v0.47.1/.circleci/config.yml (about) 1 defaults: &defaults 2 working_directory: /go/src/github.com/gohugoio 3 docker: 4 - image: bepsays/ci-goreleaser:0.79.0-2 5 6 version: 2 7 jobs: 8 build: 9 <<: *defaults 10 steps: 11 - checkout: 12 path: hugo 13 - run: 14 command: | 15 go get -d github.com/magefile/mage/... 16 git clone git@github.com:gohugoio/hugoDocs.git 17 cd hugo 18 mage vendor 19 mage check 20 - persist_to_workspace: 21 root: . 22 paths: . 23 release: 24 <<: *defaults 25 steps: 26 - attach_workspace: 27 at: /go/src/github.com/gohugoio 28 - run: 29 command: | 30 cd hugo 31 git config --global user.email "bjorn.erik.pedersen+hugoreleaser@gmail.com" 32 git config --global user.name "hugoreleaser" 33 go run -tags release main.go release -r ${CIRCLE_BRANCH} 34 35 workflows: 36 version: 2 37 release: 38 jobs: 39 - build: 40 filters: 41 branches: 42 only: /release-.*/ 43 - hold: 44 type: approval 45 requires: 46 - build 47 - release: 48 context: org-global 49 requires: 50 - hold