Skip to content

Commit

Permalink
Final Fix to workflow [release-5.2.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
navjottomer committed Apr 23, 2024
1 parent 21ca5d7 commit 5084326
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
echo "Sub sub version: $SUB_SUB_VERSION"
echo "Version: $VERSION"
# Create release branch if not dev and rc/beta branches are not created
# Create release branch if not dev and release branch does not exist
if [[ $SUB_VERSION =~ (rc|beta) ]]; then
if [[ $SUB_VERSION != "dev"; then
# check if release branch already exists
if git show-ref --verify --quiet refs/heads/release/$BASE_VERSION; then
echo "Release branch already exists."
Expand Down Expand Up @@ -87,12 +87,12 @@ jobs:
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Create GitHub Release Archive
if: env.PRERELEASE == 'true'
if: env.VERSION != null
run: |
sh ./.build.sh
- name: Create GitHub Release
#Only create a release if the version is dev
if: env.PRERELEASE == 'true'
if: env.VERSION != null
uses: softprops/action-gh-release@v1
with:
files: release/osclass_v${{ env.VERSION }}.zip
Expand Down

0 comments on commit 5084326

Please sign in to comment.