diff --git a/.gitea/workflows/create-release.yml b/.gitea/workflows/create-release.yml new file mode 100644 index 00000000..effef28c --- /dev/null +++ b/.gitea/workflows/create-release.yml @@ -0,0 +1,73 @@ +name: Unreal Release + +on: + workflow_dispatch: + + +jobs: + build: + runs-on: windows + steps: + - name: Upload Linux Build Artifact + uses: actions/upload-artifact@v3 + with: + name: LuckyRobots-Linux + path: E:\LuckyWorld\LuckyRobots\UNREAL_PROJECTS\Luckyrobots\Builds\Linux\LuckyRobots-Linux.zip + retention-days: 14 + + - name: Upload Windows Build Artifact + uses: actions/upload-artifact@v3 + with: + name: LuckyRobots-Windows + path: E:\LuckyWorld\LuckyRobots\UNREAL_PROJECTS\Luckyrobots\Builds\Windows\LuckyRobots-Windows.zip + retention-days: 14 + + - name: Get Release Tag + run: | + # Fetch all tags + git fetch --tags + + # Get the latest version tag + LATEST_TAG=$(git tag -l "v[0-9]*.[0-9]*.[0-9]*" | sort -V | tail -n1) + + if [ -z "$LATEST_TAG" ]; then + NEW_VERSION="1.0.0" + else + VERSION=${LATEST_TAG#v} + MAJOR=$(echo $VERSION | cut -d. -f1) + MINOR=$(echo $VERSION | cut -d. -f2) + PATCH=$(echo $VERSION | cut -d. -f3) + PATCH=$((PATCH + 1)) + NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}" + fi + + TAG="v${NEW_VERSION}" + echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV + echo "Using release tag: $TAG" + + - name: Create Release + uses: https://gitea.com/actions/gitea-release-action@main + with: + files: |- + PackagedReleases/build-info.json + PackagedReleases/downloads.html + token: '${{ secrets.GITEA_TOKEN }}' + title: 'Release ${{ env.RELEASE_TAG }}' + body: | + ## LuckyRobots Game Release ${{ env.RELEASE_TAG }} + + ### Download Links + + Download builds from our CI artifacts: + + - [Windows Build](https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-Windows) + - [Linux Build](https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-Linux) + + ### Build Information + + - Build Number: #${{ github.run_number }} + - Commit: ${{ github.sha }} + - Branch: ${{ github.ref_name }} + - Build Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC") + prerelease: ${{ github.ref != 'refs/heads/main' }} + tag_name: '${{ env.RELEASE_TAG }}' \ No newline at end of file diff --git a/.gitea/workflows/unreal-build.yml b/.gitea/workflows/unreal-build.yml index ef2d15fd..589489ef 100644 --- a/.gitea/workflows/unreal-build.yml +++ b/.gitea/workflows/unreal-build.yml @@ -185,11 +185,6 @@ jobs: <p><a href="https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-Linux" class="download-btn">Download Linux Build</a></p> </div> - <div class="platform"> - <h2>macOS</h2> - <p><a href="https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-macOS" class="download-btn">Download macOS Build</a></p> - </div> - <footer> <p>Generated on '$(date -u +"%Y-%m-%d %H:%M:%S UTC")'</p> </footer> @@ -213,9 +208,6 @@ jobs: - [Windows Build](https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-Windows) - [Linux Build](https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-Linux) - - [macOS Build](https://luckyrobots.com/luckyrobots/luckyworld/actions/runs/${{ github.run_id }}/artifacts/LuckyRobots-macOS) - - Or visit our [download page](https://luckyrobots.com/luckyrobots/luckyworld/releases/download/${{ env.RELEASE_TAG }}/downloads.html). ### Build Information diff --git a/Builds/Linux/LuckyRobots-Linux.zip b/Builds/Linux/LuckyRobots-Linux.zip new file mode 100644 index 00000000..cc1aa8c4 Binary files /dev/null and b/Builds/Linux/LuckyRobots-Linux.zip differ diff --git a/Builds/Windows/LuckyRobots-Windows.zip b/Builds/Windows/LuckyRobots-Windows.zip new file mode 100644 index 00000000..97ce6caf Binary files /dev/null and b/Builds/Windows/LuckyRobots-Windows.zip differ