Skip to content

Commit

Permalink
Fix file override on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
humrochagf committed Feb 28, 2021
1 parent 3e5e3a8 commit d982bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d982bc6

Please sign in to comment.