|
| 1 | +# This workflow will build a golang project |
| 2 | +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go |
| 3 | + |
| 4 | +# workflow name |
| 5 | +name:Generate release-artifacts |
| 6 | + |
| 7 | +# on events |
| 8 | +on: |
| 9 | +release: |
| 10 | +types: |
| 11 | + -created |
| 12 | + |
| 13 | +# workflow tasks |
| 14 | +jobs: |
| 15 | +generate: |
| 16 | +name:Generate cross-platform builds |
| 17 | +runs-on:ubuntu-latest |
| 18 | +steps: |
| 19 | + -name:Checkout the repository |
| 20 | +uses:actions/checkout@v2 |
| 21 | + -name:Generate build files |
| 22 | +uses:thatisuday/go-cross-build@v1 |
| 23 | +with: |
| 24 | +platforms:'linux/amd64, linux/arm64, darwin/arm64, darwin/amd64, windows/amd64' |
| 25 | +package:'main' |
| 26 | +name:'image-compressor-api' |
| 27 | +compress:'true' |
| 28 | +dest:'dist' |