From 39cb90de82a08bb9cb1a820e3a829e57b1615926 Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Sun, 24 Sep 2023 07:00:08 +0200 Subject: [PATCH] add release job --- .github/workflows/rust.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ebf5a70..dcff070 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Test on: push: @@ -28,3 +28,30 @@ jobs: files: | LICENSE target/debug/tree-owners + +--- + +name: Release + +on: + push: + tags: + - "v*" + +jobs: + release: + runs-on: "ubuntu-latest" + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --release --verbose + - name: Run tests + run: cargo test --release --verbose + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + LICENSE + target/release/tree-owners