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