Skip to content

Commit

Permalink
added action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Yshayy committed Jul 30, 2023
1 parent 4b5c2ff commit 58dac10
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gh-release.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 58dac10

Please sign in to comment.