Skip to content

Commit

Permalink
🛠️ Release workflow fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
exislow committed Dec 20, 2023
1 parent 6bee034 commit a1b3c0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/on-release-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ on:
# release:
# types: [published]
# 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:
tags:
- "v*.*.*"
Expand Down Expand Up @@ -64,9 +74,7 @@ jobs:
build-gui-and-upload-assets:
needs: publish
env:
OUT_NAME_FILE: "TIDAL-Downloader-NG"
ASSET_MIME: "application/zip"
ASSET_EXTENSION: ".zip"
strategy:
fail-fast: false
matrix:
Expand All @@ -79,7 +87,7 @@ jobs:
source .venv/bin/activate &&
poetry run make gui-macos &&
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"
# TARGET: "windows-2019"
# CMD_BUILD: pyinstaller -F -w -n clipster -i resources/clipster.ico cli.py
Expand Down Expand Up @@ -125,6 +133,6 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.get_release_info.outputs.release_upload_url}}
asset_path: ./dist/${{env.OUT_NAME_FILE}}${{env.ASSET_EXTENSION}}
asset_name: ${{env.OUT_NAME_FILE}}${{env.ASSET_EXTENSION}}
asset_path: ./dist/${{inputs.out_name_file}}${{inputs.asset_extension}}
asset_name: ${{inputs.out_name_file}}${{inputs.asset_extension}}
asset_content_type: ${{env.ASSET_MIME}}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tidal-dl-ng"
version = "0.4.12"
version = "0.4.13"
description = "TIDAL Medial Downloader Next Generation!"
authors = ["Robert Honz <cen.sored@gmail.com>"]
repository = "https://github.com/exislow/tidal-dl-ng"
Expand All @@ -13,7 +13,7 @@ packages = [
[tool.poetry]
name = "tidal-dl-ng"
authors = ["Robert Honz <cen.sored@gmail.com>"]
version = "0.4.12"
version = "0.4.13"
description = "TIDAL Medial Downloader Next Generation!"
repository = "https://github.com/exislow/tidal-dl-ng"
documentation = "https://exislow.github.io/tidal-dl-ng/"
Expand Down

0 comments on commit a1b3c0f

Please sign in to comment.