diff --git a/.github/workflows/go-releaser.yml b/.github/workflows/go-releaser.yml index 7d8bf4c..8a92c3c 100644 --- a/.github/workflows/go-releaser.yml +++ b/.github/workflows/go-releaser.yml @@ -17,11 +17,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v3 with: go-version: 1.21 cache: true + + - name: Replace version in version.go + run: | + tag=$(echo $GITHUB_REF | sed 's/refs\/tags\///') + sed -i "s/const RuntimeVersion = \".*\"/const RuntimeVersion = \"$tag\"/" app/version.go + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: