Skip to content

Commit

Permalink
Update publish-cli.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Oct 27, 2024
1 parent 5b69248 commit e30037d
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,28 @@ jobs:
run: |
pyinstaller --onefile --add-data "src/core/app/singer-list.csv;app" --name "Singles-Sorter" --icon "src/core/assets/icon.ico" "src/core/singles_sorter_v5.py"
- name: Get the version
id: get_version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "RELEASE_TITLE=מסדר הסינגלים $VERSION" >> $GITHUB_OUTPUT
- name: Get the version
id: get_version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "RELEASE_TITLE=מסדר הסינגלים $VERSION" >> $GITHUB_OUTPUT
- name: Rename output file
shell: pwsh
run: |
$version = "${{ steps.get_version.outputs.VERSION }}"
Move-Item -Path "dist\Singles-Sorter.exe" -Destination "dist\singles-sorter-cli-$version.exe"
- name: Create Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: ${{ steps.get_version.outputs.RELEASE_TITLE }}
draft: true
prerelease: true
files: ./dist/singles-sorter-cli-${{ steps.get_version.outputs.VERSION }}.exe
- name: Create Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
name: ${{ steps.get_version.outputs.RELEASE_TITLE }}
draft: true
prerelease: true
files: ./dist/singles-sorter-cli-${{ steps.get_version.outputs.VERSION }}.exe

0 comments on commit e30037d

Please sign in to comment.