Fix manual runs: resolve version in codesign and upload tag

This commit is contained in:
Kirill Minovsky 2026-08-25 03:00:33 +03:00
parent 3040540640
commit fc9cc482e8

View file

@ -60,6 +60,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: dist/*.exe
tag: ${{ github.event.release.tag_name || inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -105,12 +106,13 @@ jobs:
dpi_detector.py
- name: Ad-hoc codesign
run: codesign --force -s - "dist/dpi_detector_${{ github.event.release.tag_name }}_${{ matrix.suffix }}"
run: codesign --force -s - "dist/dpi_detector_${{ inputs.version || github.event.release.tag_name }}_${{ matrix.suffix }}"
- name: Upload binary to Release Assets
uses: softprops/action-gh-release@v2
with:
files: dist/dpi_detector_*
tag: ${{ github.event.release.tag_name || inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-docker: