Skip to content

Commit

Permalink
Create a distinct workflow for release
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmanm authored Dec 14, 2024
1 parent 3cab611 commit dfda200
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,37 +57,6 @@ 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 @@ -125,7 +94,7 @@ jobs:
executor: docker
steps:
- run:
name: Install Foss-cli
name: Install Fossa-cli
command: >-
wget -O - \
--header='Cache-Control: no-cache' \
Expand All @@ -138,6 +107,37 @@ jobs:
command: fossa analyze
working_directory: ~/bjforth

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
workflows:
build_test:
jobs:
Expand All @@ -146,9 +146,9 @@ workflows:
- test_coverage:
requires:
- test
release:
jobs:
- release:
requires:
- test
filters:
tags:
only: /^v.+/
Expand Down

0 comments on commit dfda200

Please sign in to comment.