From 58dac1006df6a12609a189ad265667d2387687cc Mon Sep 17 00:00:00 2001 From: Yshay Yaacobi Date: Sun, 30 Jul 2023 17:42:02 +0300 Subject: [PATCH] added action for release --- .github/workflows/gh-release.yaml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/gh-release.yaml diff --git a/.github/workflows/gh-release.yaml b/.github/workflows/gh-release.yaml new file mode 100644 index 00000000..2ee7e0c4 --- /dev/null +++ b/.github/workflows/gh-release.yaml @@ -0,0 +1,35 @@ +# release package +name: Main + +on: + workflow_dispatch: + push: + tags: + - "v*.*.*" + +jobs: + build-binaries: + runs-on: ubuntu-latest + strategy: + matrix: + arch: [x64,arm64] + platform: [linux,macos] + #exclude: + # - arch: arm64 + # platform: windows + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU + if: matrix.arch == 'arm64' + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Build using Docker + uses: docker buildx build --build-arg CLI_TARGET=node18-${{ matrix.platform }}-${{ matrix.arch }} -f Dockerfile.cli --target=cli --output=type=local,dest=./preevy-bin --progress=plain --platform=linux/${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} . + - name: Upload artificats + uses: actions/upload-artifact@v3 + with: + path: ./preevy-bin/** +permissions: + contents: write \ No newline at end of file