-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release scripts * ci: packaging * ci changes * refactor: update packaging scripts * test package with Unreal * update craft * update ci * update CI
- Loading branch information
Showing
10 changed files
with
426 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
minVersion: 0.24.0 | ||
changelogPolicy: auto | ||
preReleaseCommand: pwsh scripts/bump-version.ps1 | ||
targets: | ||
# TODO | ||
# - name: symbol-collector | ||
# includeNames: /libsentry(-android)?\.so/ | ||
# batchType: android | ||
# bundleIdPrefix: sentry-unity-android-ndk- | ||
- name: github | ||
includeNames: /^sentry-unreal-.*.zip$/i | ||
- name: registry | ||
sdks: | ||
github:sentry-unreal: |
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,30 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to release | ||
required: true | ||
force: | ||
description: Force a release even when there are release-blockers (optional) | ||
required: false | ||
|
||
jobs: | ||
job_release: | ||
runs-on: ubuntu-latest | ||
name: 'Release a new version: ${{ github.event.inputs.version }}' | ||
steps: | ||
- name: Check out current commit (${{ github.sha }}) | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_RELEASE_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Prepare release ${{ github.event.inputs.version }} | ||
uses: getsentry/action-prepare-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
force: ${{ github.event.inputs.force }} |
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 |
---|---|---|
|
@@ -32,3 +32,7 @@ Intermediate/* | |
|
||
# Other | ||
.DS_Store | ||
|
||
# Ignore package release | ||
package-release/ | ||
sentry-unreal-*.zip |
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,19 @@ | ||
Param( | ||
[Parameter(Mandatory = $true)][String]$PrevVersion, | ||
[Parameter(Mandatory = $true)][String]$NewVersion | ||
) | ||
Set-StrictMode -Version latest | ||
|
||
$pluginFile = "$PSScriptRoot/../plugin-dev/Sentry.uplugin" | ||
|
||
$content = Get-Content $pluginFile | ||
|
||
$content -replace '"VersionName": ".*"', ('"VersionName": "' + $NewVersion + '"') | Out-File $pluginFile | ||
if ("$content" -eq "$(Get-Content $pluginFile)") | ||
{ | ||
$versionInFile = [regex]::Match("$content", '"VersionName": "([^"]+)"').Groups[1].Value | ||
if ("$versionInFile" -ne "$NewVersion") | ||
{ | ||
Throw "Failed to update version in $pluginFile - the content didn't change. The version found in the file is '$versionInFile'." | ||
} | ||
} |
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,12 @@ | ||
/arm64-v8a | ||
/armeabi-v7a | ||
/x86 | ||
/x86_64 | ||
arm64-v8a/libsentry-android.so | ||
arm64-v8a/libsentry.so | ||
armeabi-v7a/libsentry-android.so | ||
armeabi-v7a/libsentry.so | ||
x86/libsentry-android.so | ||
x86/libsentry.so | ||
x86_64/libsentry-android.so | ||
x86_64/libsentry.so |
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,3 @@ | ||
5.0 | ||
4.27 | ||
4.26 |
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,22 @@ | ||
Remove-Item "package-release" -Recurse -ErrorAction SilentlyContinue | ||
New-Item "package-release" -ItemType Directory | ||
|
||
$exclude = @('Sentry.uplugin') | ||
|
||
Copy-Item "plugin-dev/*" "package-release/" -Exclude $exclude -Recurse | ||
Copy-Item "CHANGELOG.md" -Destination "package-release/CHANGELOG.md" | ||
Copy-Item "LICENSE" -Destination "package-release/LICENSE" | ||
|
||
$pluginSpec = Get-Content "plugin-dev/Sentry.uplugin" | ||
$version = [regex]::Match("$pluginSpec", '"VersionName": "([^"]+)"').Groups[1].Value | ||
$engineVersions = Get-Content $PSScriptRoot/engine-versions.txt | ||
foreach ($engineVersion in $engineVersions) | ||
{ | ||
$packageName = "sentry-unreal-$version-engine$engineVersion.zip" | ||
Write-Host "Creating a release package for Unreal $engineVersion as $packageName" | ||
|
||
$newPluginSpec = @($pluginSpec[0..0]) + @(' "EngineVersion" : "' + $engineVersion + '",') + @($pluginSpec[1..($pluginSpec.count)]) | ||
$newPluginSpec | Out-File 'package-release/Sentry.uplugin' | ||
|
||
Compress-Archive "package-release/*" -DestinationPath $packageName -Force | ||
} |
Oops, something went wrong.