Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kirre-bylund authored Oct 31, 2024
1 parent f6845b0 commit 26b4952
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/selfhosted-poc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,20 @@ jobs:
- name: Checkout this repository
uses: actions/checkout@v4

- name: PWD and Cat
run: |
pwd
ls -als
- name: Package SDK
if: false
run: |
SDK_PATH="$(pwd)"
SDK_NAME=`find "$SDK_PATH" -type f -name "*.uplugin" | sed -n -r "s/.*\/([-A-Za-z0-9_]+)\.uplugin/\1/p"`
PACKAGE_NAME="LootLockerSDKv${SDK_VERSION}_for_Unreal_Engine_$UNREAL_INSTALLATIONS_TAGS[i].zip"
tar -a -cf "$CURRENT_PACKAGE_DIR/$PACKAGE_NAME" -C "$CURRENT_BUILD_DIR/Source" "$SDK_NAME"
SDK_VERSION=`sed -n -r 's/^ +\"VersionName\": \"([0-9]+.[0-9]+.[0-9]+)\",/\1/p' < "$SDK_PATH/$SDK_NAME/$SDK_NAME.uplugin"`
CURRENT_PACKAGE_DIR="/Packaged"
mkdir -p "$CURRENT_PACKAGE_DIR"
PACKAGE_NAME="${SDK_NAME}v${SDK_VERSION}_for_Unreal_Engine_$UNREAL_INSTALLATIONS_TAGS[i].zip"
tar -a -cf "$CURRENT_PACKAGE_DIR/$PACKAGE_NAME" -C "$SDK_PATH" "$SDK_NAME"
echo " Package $PACKAGE_NAME produced to path $CURRENT_PACKAGE_DIR"
- name: Expose packages
uses: actions/upload-artifact@v4
with:
name: Packaged SDK
path: /Packaged/*.zip

0 comments on commit 26b4952

Please sign in to comment.