Skip to content

Commit

Permalink
Update build-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
breadbyte authored Jul 3, 2024
1 parent 680fd5b commit ffdbab9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ jobs:
- name: Rename Binary
run: |
mv ${{ env.built-executable-path }} ${{ env.PROJECT }}-${{ env.build-version-info }}-${{ matrix.target }}${{ (startsWith(matrix.target, 'win') && '.exe') || ' ' }}
- name: Wait
# We wait before creating a release because we might run into a race condition
# while creating a new tag (as opposed to using the existing tag, if any) since we're running builds in parallel.
run: |
sleep 5s
- name: Create Release
uses: ncipollo/release-action@v1.14.0
with:
Expand All @@ -80,6 +86,7 @@ jobs:
tag: ${{ format('{0}-{1}', env.date, github.run_number) }}
name: '${{ env.build-version-info }}: ${{ github.event.head_commit.message }}'
generateReleaseNotes: true
artifactErrorsFailBuild: true
allowUpdates: true
makeLatest: true
omitBodyDuringUpdate: true
Expand Down

0 comments on commit ffdbab9

Please sign in to comment.