Skip to content

Commit

Permalink
ci: release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Mar 21, 2024
1 parent 082e0d2 commit ee18f50
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build and release

on:
push:
Expand All @@ -13,5 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build
run: cargo build --verbose
run: |
cargo build --release
strip -s target/release/grawler
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/grawler
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ee18f50

Please sign in to comment.