Skip to content

Commit

Permalink
Configure CircleCI to create a release upon a tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmanm authored Dec 14, 2024
1 parent bf1d6f5 commit 3cab611
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,37 @@ jobs:
paths:
- reports

release:
executor: docker

steps:
- run:
name: Install the development tools
command: >-
go install github.com/tcnksm/ghr@latest
- checkout

- run:
name: Build the packages
command: >-
make VERSION=${TAG} package
- run:
name: Create the GitHub release
command: >-
ghr \
-t ${GITHUB_TOKEN} \
-u ${GITHUB_USERNAME} \
-r ${CIRCLE_PROJECT_REPONAME} \
-c ${CIRCLE_SHA1} \
-n ${TAG} \
- draft \
- soft \
- generatenotes \
${TAG} \
artefacts
test_coverage:
executor: docker
steps:
Expand Down Expand Up @@ -108,11 +139,18 @@ jobs:
working_directory: ~/bjforth

workflows:
version: 2.1
build_test:
jobs:
- test
- license_scan
- test
- test_coverage:
requires:
- test
- test
- release:
requires:
- test
filters:
tags:
only: /^v.+/
branches:
ignore: /.*/

0 comments on commit 3cab611

Please sign in to comment.