Skip to content

Commit

Permalink
Retrieve version from tag name.
Browse files Browse the repository at this point in the history
  • Loading branch information
springcomp committed Feb 26, 2023
1 parent d9700fa commit 528b025
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "release"
on:
push:
tags:
- "v*"
- "v[12].[0-9]+.[0-9]+"

jobs:
run-tests:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 528b025

Please sign in to comment.