Skip to content

Commit 9177ea6

Browse files
updated workflow
1 parent b47bb87 commit 9177ea6

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
asset_name: ${{ env.EXECUTABLE_NAME }}-${{ steps.version.outputs.version }}-win64.zip
5656
asset_content_type: application/zip
5757
build-linux:
58+
needs: build-windows #this job will run only after build-windows. This way, build-windows creates the Release, and build-linux only adds an asset to it, thus avoiding a race ccondition.
5859
runs-on: ubuntu-latest
5960
steps:
6061
- name: Checkout
@@ -76,18 +77,6 @@ jobs:
7677
- name: ZIP release artifact Linux
7778
run: echo $(pwd); echo $(find . -type d); cd ${{ env.BUILD_OUTPUT_PATH }}; zip -r ../${{ env.EXECUTABLE_NAME }}-${{ steps.version.outputs.version }}-linux64.zip ./
7879

79-
- name: GitHub release
80-
uses: actions/create-release@v1
81-
id: release
82-
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84-
with:
85-
release_name: ${{ steps.version.outputs.version }}
86-
tag_name: ${{ github.ref }}
87-
body: ''
88-
draft: false
89-
prerelease: false
90-
9180
- name: GitHub release assets Linux
9281
uses: actions/upload-release-asset@v1
9382
id: release_assets_2

0 commit comments

Comments
 (0)