Skip to content

Commit

Permalink
Add the build & release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspeck committed Feb 8, 2024
1 parent 96b691d commit 177a106
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust

on:
push:
tags:
- "v*.*.*"

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- name: Build Release
run: cargo build --verbose --release
- name: Archive
uses: vimtor/action-zip@v1.1
with:
files: target/release/yapc
dest: yapc.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
yapc.zip

0 comments on commit 177a106

Please sign in to comment.