From 91e503de145611206ee968ba81e89b6c11fc41fa Mon Sep 17 00:00:00 2001 From: NV4RE Date: Sat, 17 Dec 2022 01:52:12 +0700 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..08199ec --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,24 @@ +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, darwin/amd64, windows/amd64' + package: 'demo' + name: 'program' + compress: 'true' + dest: 'dist'