From bffbe6e8c8bc22a7de334e668f464841fef54045 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 20 Sep 2023 09:47:28 +0200 Subject: [PATCH] GH Action : try reading version from Makefile --- .github/workflows/go.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 027fefa..394200d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,10 +40,11 @@ jobs: npm run build working-directory: app/ux - - name: Build + - name: Build Main run: | + $env:DEV_VERSION = ((Get-Content .\Makefile -TotalCount 1) -split '=')[1].Trim() $env:CGO_CXXFLAGS="-I${{github.workspace}}\libs\webview2\build\native\include" - go build -ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=0.9.5 -X github.com/pydio/cells-sync/common.BuildStamp=20230526 -X github.com/pydio/cells-sync/common.BuildRevision=rev" -o cells-sync.exe + go build -ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=$env:DEV_VERSION -X github.com/pydio/cells-sync/common.BuildStamp=20230526 -X github.com/pydio/cells-sync/common.BuildRevision=rev" -o cells-sync.exe - name: Upload uses: actions/upload-artifact@v3