Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Nov 8, 2023
1 parent f318013 commit c6abe93
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
- dev

env:
ARTIFACT_NAME: rtss-${{ github.ref_name }}.tar.gz

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,9 +20,19 @@ jobs:
with:
targets: x86_64-unknown-linux-gnu

- run: cargo build --release --target x86_64-unknown-linux-gnu
- run: cargo build --release --target x86_64-unknown-linux-gnu && cp target/x86_64-unknown-linux-gnu/release/rtss-v2 rtss

- uses: actions/upload-artifact@v3
with:
name: rtss-v2
path: target/x86_64-unknown-linux-gnu/release/rtss-v2
name: rtss
path: rtss

- name: Prepare tarball for release
if: startsWith(github.ref, 'refs/tags/')
run: tar zcvf $ARTIFACT_NAME rtss

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.ARTIFACT_NAME }}

0 comments on commit c6abe93

Please sign in to comment.