remove folders from build zip
This commit is contained in:
parent
117a0b9482
commit
712aa034c2
@ -3,12 +3,12 @@ name: Build project
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**' # Run on pushes to any branch
|
||||
- '**'
|
||||
tags-ignore:
|
||||
- '**' # Ignore pushes to tags
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**' # Run on pull requests to any branch
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
buildForAllSupportedPlatforms:
|
||||
@ -52,10 +52,15 @@ jobs:
|
||||
mkdir -p /tmp/zipped_builds
|
||||
if [ "${{ matrix.targetPlatform }}" == "StandaloneLinux64" ]; then
|
||||
cd build/StandaloneLinux64
|
||||
zip -r /tmp/zipped_builds/build_StandaloneLinux64.zip . -x "StandaloneLinux64_BackUpThisFolder_ButDontShipItWithYourGame/**"
|
||||
zip -r /tmp/zipped_builds/build_StandaloneLinux64.zip . \
|
||||
-x "StandaloneLinux64_BackUpThisFolder_ButDontShipItWithYourGame/**" \
|
||||
-x "StellarXipher_BurstDebugInformation_DoNotShip/**"
|
||||
cd ../..
|
||||
else
|
||||
zip -r /tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }}
|
||||
elif [ "${{ matrix.targetPlatform }}" == "StandaloneWindows64" ]; then
|
||||
cd build/StandaloneWindows64/build/StandaloneWindows64
|
||||
zip -r /tmp/zipped_builds/build_StandaloneWindows64.zip . \
|
||||
-x "StellarXipher_BurstDebugInformation_DoNotShip/**"
|
||||
cd ../../..
|
||||
fi
|
||||
|
||||
- name: Debug - List files in /tmp/zipped_builds
|
||||
@ -65,15 +70,15 @@ jobs:
|
||||
- name: Create Gitea Release and Upload Assets
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
env:
|
||||
NODE_OPTIONS: '--experimental-fetch' # Required for Node.js < 18
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} # Gitea token for authentication
|
||||
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
with:
|
||||
server_url: ${{ github.server_url }} # Gitea server URL (defaults to GitHub's server URL)
|
||||
tag_name: ${{ github.sha }} # Use the commit SHA as the tag name
|
||||
name: Release ${{ github.sha }} # Release name
|
||||
draft: false # Do not create a draft release
|
||||
prerelease: false # Do not mark as a prerelease
|
||||
server_url: ${{ github.server_url }}
|
||||
tag_name: ${{ github.sha }}
|
||||
name: Release ${{ github.sha }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
files: |
|
||||
/tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip
|
||||
md5sum: true # Generate and upload MD5 checksums
|
||||
sha256sum: true # Generate and upload SHA-256 checksums
|
||||
md5sum: true
|
||||
sha256sum: true
|
Loading…
Reference in New Issue
Block a user