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:
parent
163d6cb59a
commit
39cb90de82
29
.github/workflows/rust.yml
vendored
29
.github/workflows/rust.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user