Skip to content

Commit fe2ab8d

Browse files
Release 10.4.0 (#2593)
1 parent dc9a631 commit fe2ab8d

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

.github/templates/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ jobs:
287287
$suffix = ""
288288
if ($env:GITHUB_EVENT_NAME -eq "pull_request")
289289
{
290-
if (-Not $env:GITHUB_REF.Contains("release"))
290+
if (-Not "${{ github.head_ref }}".Contains("release"))
291291
{
292292
$suffix = "PR-${{ github.event.number }}.$env:GITHUB_RUN_NUMBER"
293293
}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ jobs:
257257
$suffix = ""
258258
if ($env:GITHUB_EVENT_NAME -eq "pull_request")
259259
{
260-
if (-Not $env:GITHUB_REF.Contains("release"))
260+
if (-Not "${{ github.head_ref }}".Contains("release"))
261261
{
262262
$suffix = "PR-${{ github.event.number }}.$env:GITHUB_RUN_NUMBER"
263263
}

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,34 @@ jobs:
3838
echo "Would upload to nuget 'Realm/packages/Realm.$version.nupkg/Realm.$version.nupkg'"
3939
# dotnet nuget push "Realm/packages/Realm.Fody.$version.nupkg/Realm.Fody.$version.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
4040
# dotnet nuget push "Realm/packages/Realm.$version.nupkg/Realm.$version.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
41+
- name: Temp - List artifacts
42+
run: |
43+
ls ${{ github.workspace }}/Realm/packages/
44+
- name: Temp - List Unity package
45+
run: |
46+
ls ${{ github.workspace }}/Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz
4147
- name: Create Github Release
4248
uses: ncipollo/release-action@v1
4349
with:
44-
artifacts: Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz
50+
artifacts: ${{ github.workspace }}/Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz
4551
bodyFile: ${{ steps.extract-release-notes.outputs.release-notes-path }}
4652
name: ${{ steps.get-version.outputs.version }}
4753
commit: ${{ github.ref }}
4854
tag: ${{ steps.get-version.outputs.version }}
4955
token: ${{ secrets.GITHUB_TOKEN }}
5056
draft: true
57+
- name: Configure AWS Credentials
58+
uses: aws-actions/configure-aws-credentials@v1
59+
with:
60+
aws-access-key-id: ${{ secrets.DOCS_S3_ACCESS_KEY }}
61+
aws-secret-access-key: ${{ secrets.DOCS_S3_SECRET_KEY }}
62+
# aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }} # if you have/need it
63+
aws-region: us-east-2
5164
- name: Upload docs
5265
run: |
5366
Expand-Archive -Path Realm/packages/Docs.zip/Docs.zip -DestinationPath Realm/packages
54-
py -m pip install s3cmd
5567
$versions = "${{ steps.get-version.outputs.version }}", "latest"
5668
Foreach ($ver in $versions)
5769
{
58-
s3cmd put --recursive --acl-public --access_key=${{ secrets.DOCS_S3_ACCESS_KEY }} --secret_key=${{ secrets.DOCS_S3_SECRET_KEY }} "${{ github.workspace }}\Realm\packages\_site" s3://realm-sdks/realm-sdks/dotnet/$ver/
70+
aws s3 sync --acl public-read "${{ github.workspace }}\Realm\packages\_site" s3://realm-sdks/realm-sdks/dotnet/$ver/
5971
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## vNext (TBD)
1+
## 10.4.0 (2021-08-31)
22

33
### Fixed
44
* Fixed an issue that would cause `Logger.Default` on Unity to always revert to `Debug.Log`, even when a custom logger was set. (Issue [#2481](https://github.com/realm/realm-dotnet/issues/2481))

Realm/AssemblyInfo.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
33
<Product>Realm .NET</Product>
4-
<VersionPrefix>10.3.1</VersionPrefix>
4+
<VersionPrefix>10.4.0</VersionPrefix>
55
<Description Condition="'$(Description)' == ''">Realm is a mobile database: a replacement for SQLite</Description>
66
<Company>Realm Inc.</Company>
77
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) Realm Inc.</Copyright>

Realm/Realm.Unity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "io.realm.unity",
3-
"version": "10.3.1",
3+
"version": "10.4.0",
44
"displayName": "Realm",
55
"description": "Realm is an embedded mobile database for Unity",
66
"unity": "2021.1",

0 commit comments

Comments
 (0)