Skip to content
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
33 changes: 33 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Package and Release

on:
push:
tags:
- '*' # Run on any tag
workflow_dispatch:

jobs:
build-and-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Make fab_package.sh executable
run: chmod +x fab_package.sh

- name: Run packaging script
run: ./fab_package.sh

- name: Upload SteamInputPlugin.zip as artifact
uses: actions/upload-artifact@v4
with:
name: SteamInputPlugin
path: target/fab/SteamInputPlugin.zip

- run: echo "RELEASE_TAG=$(git tag)" >>$GITHUB_ENV
- uses: ncipollo/release-action@v1
with:
tag: ${{ env.RELEASE_TAG }}
artifacts: target/fab/SteamInputPlugin.zip
bodyFile: "README.md"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ DerivedDataCache/*

#env variables
*.env
*env.bat
*env.bat

target/
3 changes: 2 additions & 1 deletion SteamInputPlugin.uproject
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"Type": "Runtime",
"LoadingPhase": "Default"
}
]
],
"Plugins": []
}
15 changes: 15 additions & 0 deletions fab_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
directories_to_keep="Config Content/Examples Plugins/SteamInputSimplePlugin/Config/\
Plugins/SteamInputSimplePlugin/Content\
Plugins/SteamInputSimplePlugin/Resources\
Plugins/SteamInputSimplePlugin/Source\
Plugins/SteamInputSimplePlugin/SteamInputSimplePlugin.uplugin\
Source\
SteamInputPlugin.uproject"

zip -r -9 -X -q -o "SteamInputPlugin.zip" $directories_to_keep

[ -d target ] && rm -r target

mkdir -p target/fab

mv "SteamInputPlugin.zip" target/fab/SteamInputPlugin.zip