From d982bc61b403fcfaa9fd25ec47cc464451e87e0d Mon Sep 17 00:00:00 2001 From: Humberto Rocha Date: Sun, 28 Feb 2021 17:58:54 -0500 Subject: [PATCH] Fix file override on deploy --- .github/workflows/packaging.yml | 3 --- tasks.py | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 9b5a5b7..543c468 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -41,7 +41,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: dist/*.zip - asset_name: pyxel-lander-${{ github.ref }}-linux.zip tag: ${{ github.ref }} overwrite: true file_glob: true @@ -81,7 +80,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: dist/*.zip - asset_name: pyxel-lander-${{ github.ref }}-osx.zip tag: ${{ github.ref }} overwrite: true file_glob: true @@ -117,7 +115,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: dist/*.zip - asset_name: pyxel-lander-${{ github.ref }}-windows.zip tag: ${{ github.ref }} overwrite: true file_glob: true diff --git a/tasks.py b/tasks.py index 03eafbd..59c4479 100644 --- a/tasks.py +++ b/tasks.py @@ -1,13 +1,13 @@ import itertools +import platform import shutil import zipfile from pathlib import Path from invoke import task -from pyxel_lander import __version__ - ROOTDIR = Path(__file__).parent.resolve() +PLATFORM_NAME = platform.system().lower().replace("darwin", "osx") @task @@ -48,7 +48,7 @@ def lint(c): def package(c): print("Packaging the game...") - package_name = f"pyxel-lander-{__version__}" + package_name = f"pyxel-lander-{PLATFORM_NAME}" dist_dir = ROOTDIR / Path("dist") package_dir = dist_dir / package_name