diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 638f252..3ee76f8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -56,3 +56,22 @@ jobs: override: true - run: rustup component add clippy - run: cargo clippy -- -D warnings + + build: + name: Build binary + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + - run: cargo build --all --release && strip target/release/namespacer && mv target/release/namespacer target/release/namespacer_amd64 + - uses: softprops/action-gh-release@v1 + # if: startsWith(github.ref, 'refs/tags/') + with: + files: + target/release/namespacer_amd64 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}