mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Remove version from file name, too
This commit is contained in:
parent
aacec55d1e
commit
6f04ab8575
1 changed files with 8 additions and 0 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -133,6 +133,14 @@ jobs:
|
|||
git tag -a "v${{ steps.version_info.outputs.version }}" -m "v${{ steps.version_info.outputs.version }}"
|
||||
git push origin "v${{ steps.version_info.outputs.version }}"
|
||||
|
||||
- name: Rename installer for non-release branch
|
||||
if: env.IS_RELEASE_BRANCH != 'true'
|
||||
run: |
|
||||
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
||||
$sanitized = $branch -replace '[^a-zA-Z0-9._-]', '_'
|
||||
mv drop/Greenshot-INSTALLER-*.exe "drop/Greenshot-INSTALLER-${sanitized}.exe"
|
||||
shell: bash
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue