0
0
Fork 0

add release job

This commit is contained in:
Adrian Wannenmacher 2023-09-24 07:00:08 +02:00
parent 163d6cb59a
commit 39cb90de82
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
1 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: Rust name: Test
on: on:
push: push:
@ -28,3 +28,30 @@ jobs:
files: | files: |
LICENSE LICENSE
target/debug/tree-owners 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