Skip to content

Commit

Permalink
feat(infra): another try for fixing versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Remigiusz Godowicz committed Sep 13, 2020
1 parent e963010 commit 3e79868
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,17 @@ jobs:
version: ${{ steps.release.outputs.id }}
steps:
- name: Get the release version from the tag
if: env.RG_VERSION == ''
run: |
# Apparently, this is the right way to get a tag name. Really?
#
# See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
echo "::set-env name=VERSION::${GITHUB_REF#refs/tags/}"
echo "version is: ${{ env.VERSION }}"
id: version
uses: battila7/get-version-action@v2

- name: Create GitHub release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
tag_name: ${{ steps.version.outputs.version }}
release_name: ${{ steps.version.outputs.version }}

build-release:
name: build-release
Expand Down

0 comments on commit 3e79868

Please sign in to comment.