Skip to content

Commit

Permalink
Release 10.4.0 (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 31, 2021
1 parent dc9a631 commit fe2ab8d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/templates/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
$suffix = ""
if ($env:GITHUB_EVENT_NAME -eq "pull_request")
{
if (-Not $env:GITHUB_REF.Contains("release"))
if (-Not "${{ github.head_ref }}".Contains("release"))
{
$suffix = "PR-${{ github.event.number }}.$env:GITHUB_RUN_NUMBER"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ jobs:
$suffix = ""
if ($env:GITHUB_EVENT_NAME -eq "pull_request")
{
if (-Not $env:GITHUB_REF.Contains("release"))
if (-Not "${{ github.head_ref }}".Contains("release"))
{
$suffix = "PR-${{ github.event.number }}.$env:GITHUB_RUN_NUMBER"
}
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,34 @@ jobs:
echo "Would upload to nuget 'Realm/packages/Realm.$version.nupkg/Realm.$version.nupkg'"
# 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
# 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
- name: Temp - List artifacts
run: |
ls ${{ github.workspace }}/Realm/packages/
- name: Temp - List Unity package
run: |
ls ${{ github.workspace }}/Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
artifacts: Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz
artifacts: ${{ github.workspace }}/Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz
bodyFile: ${{ steps.extract-release-notes.outputs.release-notes-path }}
name: ${{ steps.get-version.outputs.version }}
commit: ${{ github.ref }}
tag: ${{ steps.get-version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DOCS_S3_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.DOCS_S3_SECRET_KEY }}
# aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }} # if you have/need it
aws-region: us-east-2
- name: Upload docs
run: |
Expand-Archive -Path Realm/packages/Docs.zip/Docs.zip -DestinationPath Realm/packages
py -m pip install s3cmd
$versions = "${{ steps.get-version.outputs.version }}", "latest"
Foreach ($ver in $versions)
{
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/
aws s3 sync --acl public-read "${{ github.workspace }}\Realm\packages\_site" s3://realm-sdks/realm-sdks/dotnet/$ver/
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## vNext (TBD)
## 10.4.0 (2021-08-31)

### Fixed
* 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))
Expand Down
2 changes: 1 addition & 1 deletion Realm/AssemblyInfo.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Product>Realm .NET</Product>
<VersionPrefix>10.3.1</VersionPrefix>
<VersionPrefix>10.4.0</VersionPrefix>
<Description Condition="'$(Description)' == ''">Realm is a mobile database: a replacement for SQLite</Description>
<Company>Realm Inc.</Company>
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) Realm Inc.</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion Realm/Realm.Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "io.realm.unity",
"version": "10.3.1",
"version": "10.4.0",
"displayName": "Realm",
"description": "Realm is an embedded mobile database for Unity",
"unity": "2021.1",
Expand Down

0 comments on commit fe2ab8d

Please sign in to comment.