diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..4a2d1d5 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +# workflow name +name: Generate release-artifacts + +# on events +on: + release: + types: + - created + +# workflow tasks +jobs: + generate: + name: Generate cross-platform builds + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Generate build files + uses: thatisuday/go-cross-build@v1 + with: + platforms: 'linux/amd64, linux/arm64, darwin/arm64, darwin/amd64, windows/amd64' + package: 'main' + name: 'image-compressor-api' + compress: 'true' + dest: 'dist'