Skip to content

Create a distinct workflow for release #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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