From 177a106282736516a9917379871e2676dd36571b Mon Sep 17 00:00:00 2001 From: Chris Speck Date: Thu, 8 Feb 2024 20:47:04 +1100 Subject: [PATCH] Add the build & release workflow --- .github/workflows/build-and-release.yml | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-and-release.yml diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml new file mode 100644 index 0000000..2a56f7f --- /dev/null +++ b/.github/workflows/build-and-release.yml @@ -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