From 528b02502a6c9760e50405450796f35801a1f881 Mon Sep 17 00:00:00 2001 From: Springcomp Date: Sun, 26 Feb 2023 15:31:13 +0100 Subject: [PATCH] Retrieve version from tag name. --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 730a493..8964ed1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ name: "release" on: push: tags: - - "v*" + - "v[12].[0-9]+.[0-9]+" jobs: run-tests: @@ -36,8 +36,13 @@ jobs: uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} + - name: Create version + id: create-version + run: | + VERSION=`echo ${{ github.ref_name }} | cut -c 2-` + echo "version=$VERSION" >> $GITHUB_OUTPUT - name: Build all supported platforms - run: JP_VERSION=100.100.100 ./scripts/build-all-platforms + run: "JP_VERSION=${{ steps.create-version.outputs.version }} ./scripts/build-all-platforms" - uses: "marvinpinto/action-automatic-releases@latest" with: