-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2757 from decentraland/release/release-11-11-2024
release: 11-11-2024
- Loading branch information
Showing
146 changed files
with
2,482 additions
and
928 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: S3 Latest Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
- edited | ||
|
||
jobs: | ||
check-latest-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check if current release is the latest release | ||
id: check_latest | ||
run: | | ||
RELEASE_TAG=$(jq -r .release.tag_name "$GITHUB_EVENT_PATH") | ||
echo "Release Tag: $RELEASE_TAG" | ||
# Get the latest release from the API | ||
LATEST_RELEASE=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name) | ||
echo "Latest Release: $LATEST_RELEASE" | ||
# Set output for is_latest_release based on comparison | ||
if [ "$RELEASE_TAG" == "$LATEST_RELEASE" ]; then | ||
echo "is_latest_release=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "is_latest_release=false" >> $GITHUB_OUTPUT | ||
fi | ||
echo "latest_release=$LATEST_RELEASE" >> $GITHUB_ENV | ||
- name: Run actions if release is the latest | ||
if: steps.check_latest.outputs.is_latest_release == 'true' | ||
env: | ||
AWS_MAX_ATTEMPTS: 3 | ||
AWS_RETRY_MODE: standard | ||
AWS_ACCESS_KEY_ID: ${{ secrets.EXPLORER_TEAM_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.EXPLORER_TEAM_AWS_SECRET_ACCESS_KEY }} | ||
EXPLORER_TEAM_S3_BUCKET: ${{ secrets.EXPLORER_TEAM_S3_BUCKET }} | ||
RELEASES_PATH: ${{ format('@dcl/{0}/releases', github.event.repository.name) }} | ||
run: | | ||
echo '{ | ||
"version": "${{ env.latest_release }}", | ||
"timestamp": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" | ||
}' > latest.json | ||
aws s3 cp latest.json s3://$EXPLORER_TEAM_S3_BUCKET/$RELEASES_PATH/latest.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
name: Upload Latest Build to Epic Store | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
platform: | ||
description: "Select the platform(s) to upload" | ||
required: true | ||
default: "both" | ||
type: choice | ||
options: | ||
- windows | ||
- mac | ||
- both | ||
|
||
jobs: | ||
debug-build-artifacts: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get the latest release info | ||
id: get_release | ||
run: | | ||
$releaseData = Invoke-RestMethod -Uri "https://api.github.com/repos/decentraland/unity-explorer/releases/latest" | ||
$version = $releaseData.tag_name | ||
$windowsUrl = ($releaseData.assets | Where-Object { $_.name -eq "Decentraland_windows64.zip" }).browser_download_url | ||
$macosUrl = ($releaseData.assets | Where-Object { $_.name -eq "Decentraland_macos.zip" }).browser_download_url | ||
Write-Host "Release version: $version" | ||
Write-Host "Windows download URL: $windowsUrl" | ||
Write-Host "macOS download URL: $macosUrl" | ||
echo "version=$version" >> $env:GITHUB_OUTPUT | ||
echo "windows_url=$windowsUrl" >> $env:GITHUB_OUTPUT | ||
echo "macos_url=$macosUrl" >> $env:GITHUB_OUTPUT | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Ensure BuildRoot and CloudDir paths exist for Windows | ||
if: ${{ github.event.inputs.platform == 'windows' || github.event.inputs.platform == 'both' }} | ||
run: | | ||
New-Item -ItemType Directory -Path "C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Windows" -Force | ||
New-Item -ItemType Directory -Path "C:\Users\runneradmin\tools\BuildPatchTool\CloudDir_Windows" -Force | ||
- name: Ensure BuildRoot and CloudDir paths exist for macOS | ||
if: ${{ github.event.inputs.platform == 'mac' || github.event.inputs.platform == 'both' }} | ||
run: | | ||
New-Item -ItemType Directory -Path "C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Mac" -Force | ||
New-Item -ItemType Directory -Path "C:\Users\runneradmin\tools\BuildPatchTool\CloudDir_Mac" -Force | ||
- name: Download Windows build artifact | ||
if: ${{ github.event.inputs.platform == 'windows' || github.event.inputs.platform == 'both' }} | ||
run: | | ||
echo "Downloading Windows build artifact..." | ||
curl -L -o Decentraland_windows64.zip "${{ steps.get_release.outputs.windows_url }}" | ||
echo "Extracting Windows build artifact..." | ||
Expand-Archive -Path Decentraland_windows64.zip -DestinationPath "C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Windows" | ||
echo "Windows build artifact extracted to C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Windows" | ||
- name: Download macOS build artifact | ||
if: ${{ github.event.inputs.platform == 'mac' || github.event.inputs.platform == 'both' }} | ||
run: | | ||
echo "Downloading macOS build artifact..." | ||
curl -L -o Decentraland_macos.zip "${{ steps.get_release.outputs.macos_url }}" | ||
echo "Extracting macOS build artifact..." | ||
Expand-Archive -Path Decentraland_macos.zip -DestinationPath "C:\Users\runneradmin\MacBuildTemp" | ||
New-Item -ItemType Directory -Path "C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Mac" -Force | ||
tar -xf "C:\Users\runneradmin\MacBuildTemp\build.tar" -C "C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Mac" | ||
echo "macOS build artifact extracted to C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Mac" | ||
- name: Download BuildPatchTool | ||
run: | | ||
echo "Downloading BuildPatchTool..." | ||
Invoke-WebRequest -Uri "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/BuildPatchTool.zip" -OutFile "BuildPatchTool.zip" | ||
echo "Extracting BuildPatchTool..." | ||
Expand-Archive -Path "BuildPatchTool.zip" -DestinationPath "C:\Users\runneradmin\tools\BuildPatchTool" | ||
echo "BuildPatchTool extracted to C:\Users\runneradmin\tools\BuildPatchTool" | ||
- name: Add BuildPatchTool to PATH | ||
run: echo "C:\Users\runneradmin\tools\BuildPatchTool\Engine\Binaries\Win64" >> $env:GITHUB_PATH | ||
|
||
- name: Upload Windows artifact | ||
if: ${{ github.event.inputs.platform == 'windows' || github.event.inputs.platform == 'both' }} | ||
run: | | ||
C:\Users\runneradmin\tools\BuildPatchTool\Engine\Binaries\Win64\BuildPatchTool.exe ` | ||
-OrganizationId="${{ secrets.EPIC_STORE_ORG_ID }}" ` | ||
-ProductId="${{ secrets.EPIC_STORE_PRODUCT_ID }}" ` | ||
-ArtifactId="${{ secrets.EPIC_STORE_ARTIFACT_ID }}" ` | ||
-ClientId="${{ secrets.EPIC_STORE_CLIENT_ID }}" ` | ||
-ClientSecret="${{ secrets.EPIC_STORE_CLIENT_SECRET }}" ` | ||
-mode=UploadBinary ` | ||
-BuildRoot="C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Windows" ` | ||
-CloudDir="C:\Users\runneradmin\tools\BuildPatchTool\CloudDir_Windows" ` | ||
-BuildVersion="${{ steps.get_release.outputs.version }}-win" ` | ||
-AppLaunch="Decentraland.exe" ` | ||
-AppArgs="" | ||
- name: Upload macOS artifact | ||
if: ${{ github.event.inputs.platform == 'mac' || github.event.inputs.platform == 'both' }} | ||
run: | | ||
C:\Users\runneradmin\tools\BuildPatchTool\Engine\Binaries\Win64\BuildPatchTool.exe ` | ||
-OrganizationId="${{ secrets.EPIC_STORE_ORG_ID }}" ` | ||
-ProductId="${{ secrets.EPIC_STORE_PRODUCT_ID }}" ` | ||
-ArtifactId="${{ secrets.EPIC_STORE_ARTIFACT_ID }}" ` | ||
-ClientId="${{ secrets.EPIC_STORE_CLIENT_ID }}" ` | ||
-ClientSecret="${{ secrets.EPIC_STORE_CLIENT_SECRET }}" ` | ||
-mode=UploadBinary ` | ||
-BuildRoot="C:\Users\runneradmin\tools\BuildPatchTool\BuildRoot_Mac\build" ` | ||
-CloudDir="C:\Users\runneradmin\tools\BuildPatchTool\CloudDir_Mac" ` | ||
-BuildVersion="${{ steps.get_release.outputs.version }}-mac" ` | ||
-AppLaunch="Decentraland.app/Contents/MacOS/Explorer" ` | ||
-AppArgs="" ` | ||
-Platform="Mac" | ||
- name: Log BuildPatchTool log if upload fails | ||
if: failure() | ||
run: | | ||
if (Test-Path "C:\Users\runneradmin\AppData\Local\BuildPatchTool\Saved\Logs\BuildPatchTool.log") { | ||
Write-Host "Contents of BuildPatchTool.log:" | ||
Get-Content -Path "C:\Users\runneradmin\AppData\Local\BuildPatchTool\Saved\Logs\BuildPatchTool.log" -Tail 100 | ||
} else { | ||
Write-Host "BuildPatchTool.log not found." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ public enum DecentralandEnvironment | |
{ | ||
Org, | ||
Zone, | ||
Today | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.