diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbb2b04..de82f62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,8 +15,6 @@ jobs: - uses: actions/checkout@v4 - - - name: Get Next version id: get-version uses: ietf-tools/semver-action@v1.8.0 @@ -25,11 +23,6 @@ jobs: branch: ${{ github.ref }} noVersionBumpBehavior: 'current' - - name: debug - run: | - echo ${{ steps.get-version.outputs.next }} - echo ${{ steps.get-version.outputs.bump }} - - name: Set up Go uses: actions/setup-go@v4 with: @@ -38,15 +31,15 @@ jobs: - name: Make build folder run: mkdir build - - name: ls debug - run: ls -a && pwd - - name: Update version in main.go shell: bash run: | new_version=${{ steps.get-version.outputs.nextStrict }} sed -i "s/const version = \"[0-9]*\.[0-9]*\.[0-9]*\"/const version = \"$new_version\"/g" ${{ github.workspace }}/main.go + - name: Debug + run: cat ${{ github.workspace}}/main.go + - name: Build for Windows (amd64) run: | env GOOS=windows GOARCH=amd64 go build -o /home/runner/work/wowtools/wowtools/build/wowtools.exe