Skip to content

Commit

Permalink
updated package action
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Jan 25, 2024
1 parent 1781b79 commit 05b5bb2
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ jobs:
id: codesign
shell: pwsh
run: .\download-codesigntool.ps1

- name: Download BuildPatchTool
id: buildpatch
shell: pwsh
run: .\download-buildpatchtool.ps1

- name: Use Node.js
uses: actions/setup-node@v3
Expand Down Expand Up @@ -170,6 +175,49 @@ jobs:
shell: pwsh
run: |
echo "${{ steps.setOutputs.outputs.epicBuildString }}"
$rootDir = Resolve-Path "."
$extractFolder = Join-Path $rootDir "BuildPatchTool"
$binaryPath = Join-Path $extractFolder "Engine/Binaries/Win64/BuildPatchTool.exe"
$tempFolderName = "EPIC_TEMP"
$tempFolder = Join-Path $rootDir $tempFolderName
$buildFolder = Join-Path $rootDir "dist\win-unpacked"
$executableName = "Vortex.exe"
$buildVersionString = "${{ steps.setOutputs.outputs.epicBuildString }}"
Write-Output "rootDir $rootDir"
Write-Output "extractFolder $extractFolder"
Write-Output "binaryPath $binaryPath"
Write-Output "tempFolder $tempFolder"
Write-Output "buildFolder $buildFolder"
if (Test-Path -Path $buildFolder) {
Write-Output "$buildFolder folder exists"
} else {
Write-Output "$buildFolder folder not found"
Exit 1
}
& $binaryPath -mode="UploadBinary" `
-OrganizationId="$EPIC_ORGID" `
-ProductId="$EPIC_PRODUCTID" `
-ArtifactId="$EPIC_ARTIFACTID" `
-ClientId="$EPIC_CLIENTID" `
-ClientSecret="$EPIC_CLIENTSECRET" `
-CloudDir="$tempFolder" `
-BuildRoot="$buildFolder" `
-BuildVersion="$buildVersionString" `
-AppLaunch="$executableName" `
-AppArgs="" `
# ./dist/win-unpacked
env:
EPIC_ORGID: ${{ secrets.EPIC_ORGID }}
EPIC_PRODUCTID: ${{ secrets.EPIC_PRODUCTID }}
EPIC_ARTIFACTID: ${{ secrets.EPIC_ARTIFACTID }}
EPIC_CLIENTID: ${{ secrets.EPIC_CLIENTID }}
EPIC_CLIENTSECRET: ${{ secrets.EPIC_CLIENTSECRET }}

- name: Create Unpacked Artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 05b5bb2

Please sign in to comment.