From 63158c0539d66ce35dd97950072ec3245e005fd8 Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Wed, 21 Aug 2024 16:21:11 +0200 Subject: [PATCH] added release stuff... --- .github/workflows/rust.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fd45e0..d57a403 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ "main" ] + release: + types: [created] + env: CARGO_TERM_COLOR: always @@ -20,3 +23,20 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: [x86_64-unknown-linux-musl] + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + EXTRA_FILES: "README.md LICENSE"