🛠️ Release workflow fix.

This commit is contained in:
Robert Honz
2023-12-20 09:26:19 +01:00
parent 6bee034064
commit a1b3c0facc
2 changed files with 15 additions and 7 deletions
+13 -5
View File
@@ -7,6 +7,16 @@ on:
# release: # release:
# types: [published] # types: [published]
# branches: [master] # branches: [master]
workflow_dispatch: # or workflow_call
inputs:
asset_mime:
description: "MIME Type"
required: false
default: "application/zip"
out_name_file:
description: "App file name"
required: false
default: "TIDAL-Downloader-NG"
push: push:
tags: tags:
- "v*.*.*" - "v*.*.*"
@@ -64,9 +74,7 @@ jobs:
build-gui-and-upload-assets: build-gui-and-upload-assets:
needs: publish needs: publish
env: env:
OUT_NAME_FILE: "TIDAL-Downloader-NG"
ASSET_MIME: "application/zip" ASSET_MIME: "application/zip"
ASSET_EXTENSION: ".zip"
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -79,7 +87,7 @@ jobs:
source .venv/bin/activate && source .venv/bin/activate &&
poetry run make gui-macos && poetry run make gui-macos &&
cd dist && cd dist &&
zip -r ${{env.OUT_NAME_FILE}}${{env.ASSET_EXTENSION}} ${{env.OUT_NAME_FILE}}.dmg -x "*.DS_Store" zip -r ${{inputs.out_name_file}}${{inputs.asset_extension}} ${{inputs.out_name_file}}.dmg -x "*.DS_Store"
# - os: "windows-2019" # - os: "windows-2019"
# TARGET: "windows-2019" # TARGET: "windows-2019"
# CMD_BUILD: pyinstaller -F -w -n clipster -i resources/clipster.ico cli.py # CMD_BUILD: pyinstaller -F -w -n clipster -i resources/clipster.ico cli.py
@@ -125,6 +133,6 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with: with:
upload_url: ${{steps.get_release_info.outputs.release_upload_url}} upload_url: ${{steps.get_release_info.outputs.release_upload_url}}
asset_path: ./dist/${{env.OUT_NAME_FILE}}${{env.ASSET_EXTENSION}} asset_path: ./dist/${{inputs.out_name_file}}${{inputs.asset_extension}}
asset_name: ${{env.OUT_NAME_FILE}}${{env.ASSET_EXTENSION}} asset_name: ${{inputs.out_name_file}}${{inputs.asset_extension}}
asset_content_type: ${{env.ASSET_MIME}} asset_content_type: ${{env.ASSET_MIME}}
+2 -2
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "tidal-dl-ng" name = "tidal-dl-ng"
version = "0.4.12" version = "0.4.13"
description = "TIDAL Medial Downloader Next Generation!" description = "TIDAL Medial Downloader Next Generation!"
authors = ["Robert Honz <cen.sored@gmail.com>"] authors = ["Robert Honz <cen.sored@gmail.com>"]
repository = "https://github.com/exislow/tidal-dl-ng" repository = "https://github.com/exislow/tidal-dl-ng"
@@ -13,7 +13,7 @@ packages = [
[tool.poetry] [tool.poetry]
name = "tidal-dl-ng" name = "tidal-dl-ng"
authors = ["Robert Honz <cen.sored@gmail.com>"] authors = ["Robert Honz <cen.sored@gmail.com>"]
version = "0.4.12" version = "0.4.13"
description = "TIDAL Medial Downloader Next Generation!" description = "TIDAL Medial Downloader Next Generation!"
repository = "https://github.com/exislow/tidal-dl-ng" repository = "https://github.com/exislow/tidal-dl-ng"
documentation = "https://exislow.github.io/tidal-dl-ng/" documentation = "https://exislow.github.io/tidal-dl-ng/"