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"