Skip to content

Commit

Permalink
automate release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Mar 11, 2024
1 parent f000f17 commit 99b583a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/check_lint_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: 'Set filename for release binary'
run: |
pushd "target/release"
ln -s "thunder_app" "${OUTPUT_FILENAME}"
ln -fs "thunder_app" "${OUTPUT_FILENAME}"
popd
- name: 'Upload Artifacts (thunder)'
Expand All @@ -68,6 +68,16 @@ jobs:
name: ${{ env.OUTPUT_FILENAME }}
path: target/release/${{ env.OUTPUT_FILENAME }}
if-no-files-found: error

- name: Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
with:
files: target/release/${{ env.OUTPUT_FILENAME }}
fail_on_unmatched_files: true
draft: true

build-macos:
name: Build (macos-x86_64)
Expand Down Expand Up @@ -104,7 +114,7 @@ jobs:
- name: 'Set filename for release binary'
run: |
pushd "target/release"
ln -s "thunder_app" "${OUTPUT_FILENAME}"
ln -fs "thunder_app" "${OUTPUT_FILENAME}"
popd
- name: 'Upload Artifacts (thunder)'
Expand Down Expand Up @@ -155,7 +165,7 @@ jobs:
- name: 'Set filename for release binary'
run: |
pushd "target/x86_64-pc-windows-gnu/release"
ln -s "thunder_app.exe" "${OUTPUT_FILENAME}"
ln -fs "thunder_app.exe" "${OUTPUT_FILENAME}"
popd
- name: 'Upload Artifacts (thunder)'
Expand Down

0 comments on commit 99b583a

Please sign in to comment.