diff --git a/.github/workflows/go-build.yml b/.github/workflows/go-build.yml new file mode 100644 index 0000000..199aafb --- /dev/null +++ b/.github/workflows/go-build.yml @@ -0,0 +1,26 @@ +name: Generate release-artifacts +on: + release: + types: + - created +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, darwin/amd64, linux/arm64' + package: '' + name: 'aws_sm_loader' + compress: 'false' + dest: 'dist' + - name: Copy build-artifacts + uses: skx/github-action-publish-binaries@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: "./dist/*"