Skip to content

Commit

Permalink
Consolidate pre & stable build into one step in release workflow (#1358)
Browse files Browse the repository at this point in the history
* Adding pre suffix if pre-release during validate distribution step

* Updated CHANGELOG

* Consolidated pre & stable build into one step in release.yml

* Updated changelog
  • Loading branch information
AlejandroEsquivel authored Oct 18, 2022
1 parent f782c55 commit 37d56ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,9 @@ jobs:
cd ./covalent_ui/webapp
yarn install
yarn build
- name: Build Prerelease Distribution
if: inputs.prerelease
id: pre-build
run: python setup.py egg_info --tag-build=pre sdist
- name: Build Stable Distribution
if: >
github.event.inputs.stable_version
&& contains(env.PAUL_BLART, github.actor)
id: stable-build
- name: Build Stable or Pre-Release Distribution
if: contains(env.PAUL_BLART, github.actor)
id: pre-or-stable-build
run: python setup.py sdist
- name: Transform semver version to pep440
id: version-transform
Expand All @@ -221,8 +215,7 @@ jobs:
echo "::set-output name=version::$VERSION"
- name: Upload Distribution
if: >
steps.pre-build.outcome == 'success'
|| steps.stable-build.outcome == 'success'
steps.pre-or-stable-build.outcome == 'success'
&& steps.validate.outcome == 'success'
&& ${{ !github.event.inputs.test_release }}
env:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Operations

- Consolidated pre & stable build into one step in release.yml

## [0.204.0-rc.0] - 2022-10-17

### Authors
Expand Down

0 comments on commit 37d56ec

Please sign in to comment.