Skip to content

Commit

Permalink
Use short tag name in release
Browse files Browse the repository at this point in the history
Instead of `refs/tags/mytag` uses just `mytag`
  • Loading branch information
bruwozniak authored Nov 2, 2020
1 parent f474ad7 commit 5c57e32
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,23 @@ jobs:
uses: lannonbr/vsce-action@master
with:
args: "package"
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
shell: bash
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: AButler/[email protected]
with:
files: 'exasol-driver-*.vsix'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref }}
release-tag: ${{ steps.get_version.outputs.VERSION }}

0 comments on commit 5c57e32

Please sign in to comment.