Skip to content

Commit

Permalink
Fix workload to deploy nuget packages (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
WonyoungChoi committed Sep 1, 2021
1 parent 0b99687 commit 53536a8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Build
name: Release Packages

on:
workflow_dispatch:
inputs:
version:
description: 'Package Version'
required: true
deploy_to_nuget:
description: 'Deploy packages to nuget.org'
required: true
default: false

jobs:
deploy:
Expand All @@ -17,6 +21,25 @@ jobs:
with:
dotnet-version: '6.0.x'
include-prerelease: true
- run: dotnet build Tizen.UIExtensions.sln
- run: dotnet pack Tizen.UIExtensions.sln

- name: Install tizen workload
run: |
curl -sSL https://github.com/raw/Samsung/Tizen.NET/main/workload/scripts/workload-install.sh | bash -s -- -v 6.5.100-preview.7.85 -d /home/runner/.dotnet
- name: Build and pack
run: |
dotnet pack -c Release -o artifacts -p:Version=${{ github.event.inputs.version }} Tizen.UIExtensions.sln
- name: Deploy packages
env:
NUGET_SOURCE: https://tizen.myget.org/F/dotnet/api/v2/package
APIKEY: ${{ secrets.MYGET_APIKEY }}
run: |
dotnet nuget push artifacts/Tizen.UIExtensions.*.nupkg -k $APIKEY -s $NUGET_SOURCE -t 3000
- name: Deploy packages to nuget.org
if: github.event.inputs.deploy_to_nuget == 'true'
env:
NUGET_SOURCE: https://www.nuget.org/api/v2/package
APIKEY: ${{ secrets.NUGET_APIKEY }}
run: |
dotnet nuget push artifacts/Tizen.UIExtensions.*.nupkg -k $APIKEY -s $NUGET_SOURCE -t 3000
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<TargetFrameworks>tizen40;net6.0-tizen6.5</TargetFrameworks>
<TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
<DisableStandardFrameworkResolution>true</DisableStandardFrameworkResolution>
<LangVersion>8.0</LangVersion>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>NU5048, NU5104</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
3 changes: 2 additions & 1 deletion src/Tizen.UIExtensions.NUI/Tizen.UIExtensions.NUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<TargetFrameworks>tizen90;net6.0-tizen6.5</TargetFrameworks>
<TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
<DisableStandardFrameworkResolution>true</DisableStandardFrameworkResolution>
<LangVersion>8.0</LangVersion>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>NU5048, NU5104</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down

0 comments on commit 53536a8

Please sign in to comment.