From b28c008475c93ae6e9dbb0d2cad4b15da7978af2 Mon Sep 17 00:00:00 2001 From: PiterWeb <71133634+PiterWeb@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:57:30 +0200 Subject: [PATCH 1/3] main cleaned --- main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.go b/main.go index 0d068d4..fb86b00 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,7 @@ package main import ( - // "time" "github.com/PiterWeb/RemoteController/src/desktop" - // "github.com/PiterWeb/RemoteController/src/gamepad" ) func main() { From 4a8e6d2e88fb50f55110ceaeb241b939742036ee Mon Sep 17 00:00:00 2001 From: PiterWeb <71133634+PiterWeb@users.noreply.github.com> Date: Fri, 8 Sep 2023 15:09:09 +0200 Subject: [PATCH 2/3] gh action updated --- .github/workflows/go.yml | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0145c83..8243e92 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,28 +1,39 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go - +name: Release on: push: branches: [ "release" ] pull_request: branches: [ "release" ] - jobs: - build: + name: Build runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.21.0' + # Fetch depth 0 is required for Changelog generation + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + # ... do your compile, testing, bumpr, releasr steps here. + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.0' + - name: Build + run: go build -v -ldflags="-H windowsgui -o RemoteController.exe" - - name: Build - run: go build -v -ldflags="-H windowsgui" + - name: Test + run: go test -v ./... - - name: Test - run: go test -v ./... + - name: Publish Release + id: publish + uses: packagrio/action-publishr-go@master + env: + # This is necessary in order to push a commit to the repo + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged + with: + # upload any assets to your github release + upload_assets: 'RemoteController.exe' \ No newline at end of file From 1581dc42962e5e1a19473283b5a96bd5b645822d Mon Sep 17 00:00:00 2001 From: PiterWeb <71133634+PiterWeb@users.noreply.github.com> Date: Fri, 8 Sep 2023 15:16:10 +0200 Subject: [PATCH 3/3] action bug --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8243e92..b37da51 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,7 +23,7 @@ jobs: with: go-version: '1.21.0' - name: Build - run: go build -v -ldflags="-H windowsgui -o RemoteController.exe" + run: go build -v -ldflags="-H windowsgui -o ./RemoteController.exe" - name: Test run: go test -v ./...