version: 2 workflows: version: 2 simple-workflow: jobs: - build: filters: tags: only: /.*/ jobs: build: docker: - image: 'haskell:8.6' steps: - checkout - restore_cache: key: 'v3-stylish-haskell-{{ arch }}-{{ .Branch }}' - run: name: 'Build, install and test' command: 'stack build --test --copy-bins --jobs=1' - save_cache: key: 'v3-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}' paths: - '~/.stack-work' - '~/.stack' - run: name: 'Upload release' command: '.circleci/release.sh "$CIRCLE_TAG"'