diff --git a/.github/workflows/build-client.yml b/.github/workflows/build-client.yml new file mode 100644 index 0000000..42769da --- /dev/null +++ b/.github/workflows/build-client.yml @@ -0,0 +1,30 @@ +name: Build Client + +on: + push: + tags: + - '*' +jobs: + release: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v3 + - name: Build + run: | + cd client + go mod download + go build -ldflags "-s -w -extldflags '-static'" -o message-receiver.exe + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + client/message-receiver.exe + client/starter.vbs + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file