Skip to content

Commit 69c824a

Browse files
committed
fix release-workflow
1 parent f2d13ad commit 69c824a

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ env:
1515

1616
jobs:
1717
build-artifact:
18-
runs-on: windows-2019
1918
if: github.event.pull_request.merged == true
20-
19+
runs-on: windows-2019
2120
outputs:
2221
artifactName: ${{ steps.vars.outputs.artifactName }}
2322
artifactVersion: ${{ steps.vars.outputs.applicationVersion }}
@@ -73,8 +72,6 @@ jobs:
7372

7473
create-release:
7574
runs-on: ubuntu-latest
76-
if: github.event.pull_request.merged == true
77-
7875
needs: build-artifact
7976
outputs:
8077
uploadUrl: ${{ steps.export-upload-url.outputs.uploadUrl }}
@@ -83,10 +80,10 @@ jobs:
8380
- id: vars
8481
shell: bash
8582
run: |
86-
if { [ "${{ needs.build-artifact.outputs.prereleaseVersionNoLeadingHyphen }}" = "beta" ] } || { [ "${{ needs.build-artifact.outputs.prereleaseVersionNoLeadingHyphen }}" = "alpha" ] }; then
87-
echo "::set-output name=isPrerelease::true";
83+
if [ "${{ needs.build-artifact.outputs.prereleaseVersionNoLeadingHyphen }}" = "beta" ] || [ "${{ needs.build-artifact.outputs.prereleaseVersionNoLeadingHyphen }}" = "alpha" ]; then
84+
echo "::set-output name=isPrerelease::true"
8885
else
89-
echo "::set-output name=isPrerelease::false";
86+
echo "::set-output name=isPrerelease::false"
9087
fi;
9188
9289
- id: create-release
@@ -106,8 +103,6 @@ jobs:
106103
107104
upload-release:
108105
runs-on: ubuntu-latest
109-
if: github.event.pull_request.merged == true
110-
111106
needs: [ create-release, build-artifact ]
112107
env:
113108
artifactName: ${{ needs.build-artifact.outputs.artifactName }}

.idea/.idea.SimpleVolumeMixer/.idea/misc.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)