-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/release ci #62
Merged
Merged
Chore/release ci #62
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c0b99bc
release scripts
vaind d0d26f9
ci: packaging
vaind d10eca3
ci changes
vaind c3d8133
refactor: update packaging scripts
vaind 8d1d5d5
test package with Unreal
vaind 819c4e1
update craft
vaind bc34367
update ci
vaind c227cb4
update CI
vaind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the "UPM" target following in another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no more UPM, see PR description - for now we're sticking to a single repo