Skip to content

Commit

Permalink
fix the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sergchil-tb committed Nov 13, 2023
1 parent 1157de8 commit 3e5ac35
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Create Release

permissions:
contents: write

on:
push:
tags:
Expand All @@ -14,20 +17,24 @@ jobs:

# Add steps to build/test your project here

- name: List bin directory
run: ls -al ./bin

- name: Run bundle script
run: ./scripts/bundle_all.sh

- name: Zip ChiliKeys.app
run: zip -r Install.app.zip ./bin/Install.app
- name: Ensure Executable Permissions
run: |
chmod +x ChiliKeys.app/Contents/MacOS/*
chmod +x ChiliKeys.app/Contents/Resources/scripts/*
- name: Zip ChiliKeys.app
run: |
cd bin
zip -r ../ChiliKeys.app.zip ChiliKeys.app
- name: Read Changelog
id: changelog
run: |
echo "##[set-output name=body;]$(cat CHANGELOG.md)"
echo "::set-output name=body::$(cat CHANGELOG.md)"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
Expand Down
7 changes: 5 additions & 2 deletions scripts/bundle_all.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

# Navigate to the script's directory
cd "$(dirname "$0")"

# Define the source and destination directories
KEY_LAYOUTS_DIR="../key_layouts"
SCRIPT_DIR="../scripts/copy_keylayouts.sh"
DEST_DIR="../bin/Install.app/Contents/Resources"
SCRIPT_DIR="copy_keylayouts.sh"
DEST_DIR="../bin/ChiliKeys.app/Contents/Resources"

# Copy the files from the source to the destination
cp -R "$KEY_LAYOUTS_DIR" "$DEST_DIR"
Expand Down
9 changes: 0 additions & 9 deletions scripts/copy_keylayouts.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# #!/bin/bash
# # Navigate to the script's directory
# cd "$(dirname "$0")"

# # Copy keylayouts to the user's Keyboard Layouts directory
# cp ../resources/*.keylayout ~/Library/Keyboard\ Layouts/
# cp ../resources/*.icns ~/Library/Keyboard\ Layouts/


#!/bin/bash
# Navigate to the script's directory
cd "$(dirname "$0")"
Expand Down

0 comments on commit 3e5ac35

Please sign in to comment.