0
0
mirror of https://github.com/TeFiLeDo/tree-owners.git synced 2024-11-24 05:06:18 +01:00

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

View File

@ -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