Skip to content

fix: ci

fix: ci #9

Workflow file for this run

name: build
on:
push:
branches:
- main
- dev
tags:
- v*
env:
ARTIFACT_NAME: rtss-${{ github.ref_name }}.tar.gz
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: 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
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 }}