diff --git a/.github/workflows/myexe.yaml b/.github/workflows/myexe.yaml new file mode 100644 index 00000000000..18feeb9f7c1 --- /dev/null +++ b/.github/workflows/myexe.yaml @@ -0,0 +1,29 @@ +name: Build and Upload Windows EXE + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build-and-upload: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.22' + + - name: Build executable + run: go build -o myapp.exe ./... + # Ensure this command correctly builds your .exe. Adjust as needed. + + - name: Upload EXE as artifact + uses: actions/upload-artifact@v4 + with: + name: windows-exe + path: myapp.exe