From 3c8cb21a58ec5211934b2e6730291e5bef23b403 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Tue, 19 Oct 2021 23:30:37 +0300 Subject: [PATCH] Add ize build on release --- .github/workflows/build_on_release.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build_on_release.yml diff --git a/.github/workflows/build_on_release.yml b/.github/workflows/build_on_release.yml new file mode 100644 index 00000000..aa52d3f6 --- /dev/null +++ b/.github/workflows/build_on_release.yml @@ -0,0 +1,28 @@ +name: "Build IZE on release" +on: + release: + types: [created] +jobs: + Build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: go build -o ./ize ./cmd + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./ize + asset_name: ${{ runner.os }} + asset_content_type: application/zip