Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include all files in release artifacts #56

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: artifacts-linux
path: release/wakatime-linux-*.AppImage
path: release/*
-
name: Remove tag if failure
if: ${{ failure() }}
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: artifacts-windows
path: release/wakatime-win32-*.exe
path: release/*
-
name: Remove tag if failure
if: ${{ failure() }}
Expand Down
23 changes: 2 additions & 21 deletions bin/prepare_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,9 @@ if ! [ -d "./release" ]; then
mkdir ./release
fi

# ensure zip is installed
if [ "$(which zip)" = "" ]; then
apt-get update && apt-get install -y zip
fi

# add execution permission
chmod 750 ./release/wakatime-linux-x86_64.AppImage
chmod 750 ./release/wakatime-linux-arm64.AppImage
chmod 750 ./release/wakatime-win32-x64.exe
chmod 750 ./release/wakatime-win32-arm64.exe

# create archives
zip -j ./release/wakatime-linux-x86_64.zip ./release/wakatime-linux-x86_64.AppImage
zip -j ./release/wakatime-linux-arm64.zip ./release/wakatime-linux-arm64.AppImage
zip -j ./release/wakatime-win32-x64.zip ./release/wakatime-win32-x64.exe
zip -j ./release/wakatime-win32-arm64.zip ./release/wakatime-win32-arm64.exe

# remove executables
rm ./release/wakatime-linux-x86_64.AppImage
rm ./release/wakatime-linux-arm64.AppImage
rm ./release/wakatime-win32-x64.exe
rm ./release/wakatime-win32-arm64.exe
chmod 750 ./release/*.AppImage
chmod 750 ./release/*.exe

# calculate checksums
for file in ./release/*; do
Expand Down
Loading