Skip to content

Commit

Permalink
Add release step to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thled committed Dec 16, 2020
1 parent d4b409e commit 4f76c87
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,22 @@ jobs:
override: true
- run: rustup component add clippy
- run: cargo clippy -- -D warnings

build:
name: Build binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- run: cargo build --all --release && strip target/release/namespacer && mv target/release/namespacer target/release/namespacer_amd64
- uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
files:
target/release/namespacer_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4f76c87

Please sign in to comment.