From c1d99aed3beeb5dbc6629efbab843a60f1678ab7 Mon Sep 17 00:00:00 2001 From: Dominik Winecki Date: Tue, 10 Sep 2024 16:10:41 +0000 Subject: [PATCH] Add publish static binary --- .github/workflows/publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index df12916..4e26510 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -70,3 +70,21 @@ jobs: with: push: true tags: dominikwinecki/vidformer:latest,dominikwinecki/vidformer:${{ github.event.release.tag_name }} + + publish-binary: + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v2 + - name: Deps + run: bash ./scripts/deps.sh + - name: Check Build + run: cargo check + - name: Build release + run: cargo build --release && cp ./target/release/vidformer-cli ./vidformer-cli-linux-amd64 + - name: Upload release + uses: softprops/action-gh-release@v2 + with: + files: | + vidformer-cli-linux-amd64 \ No newline at end of file