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 19ede0f
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 @@ -9,6 +9,8 @@ jobs:
check-lint-build-stable:
name: Check, Lint, Build (ubuntu stable)
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 20
# env:
# RUSTFLAGS: -D warnings
Expand Down Expand Up @@ -59,7 +61,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 +70,14 @@ 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/')
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 19ede0f

Please sign in to comment.