Skip to content

Commit

Permalink
GitHub action releases.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Qvist <[email protected]>
  • Loading branch information
Anders Qvist committed Nov 20, 2021
1 parent 1554087 commit 174a79f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
branches:
- main

jobs:
release:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo clippy
- run: cargo test
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
tags:
- "[0-9].[0-9]*"

jobs:
release:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo clippy
- run: cargo build --release
- uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: false
files: |
target/release/aztail
target/release/aztail.exe

0 comments on commit 174a79f

Please sign in to comment.