Skip to content

Commit 86c2f52

Browse files
committed
ci: fix deployment process
- add unzip resources step - gitignore artifacts
1 parent fbbf8a8 commit 86c2f52

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/cd.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ jobs:
3737
with:
3838
dotnet-version: "10.0.x"
3939

40-
# - name: Restore workloads
41-
# run: dotnet workload restore
40+
- name: Restore workloads
41+
run: dotnet workload restore
4242

4343
- name: Build
4444
run: dotnet build OneSignalSDK.DotNet/OneSignalSDK.DotNet.csproj -c Release /p:Version=${{ steps.version.outputs.version }}
4545

46+
- name: Extract iOS resources
47+
run: unzip OneSignalSDK.DotNet.iOS.Binding/bin/Release/net10.0-ios/OneSignalSDK.DotNet.iOS.Binding.resources.zip -d OneSignalSDK.DotNet.iOS.Binding/bin/Release/net10.0-ios/OneSignalSDK.DotNet.iOS.Binding.resources/
48+
4649
- name: Pack
47-
run: nuget pack OneSignalSDK.DotNet.nuspec -OutputDirectory ./artifacts
50+
run: dotnet pack OneSignalSDK.DotNet/OneSignalSDK.DotNet.csproj --no-build -c Release /p:NuspecFile=../OneSignalSDK.DotNet.nuspec -o ./artifacts
4851

4952
- name: Publish to NuGet
5053
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DerivedData/
88
packages/
99
TestResults/
1010
Pods/
11+
artifacts/
1112

1213
# globs
1314
Makefile.in

0 commit comments

Comments
 (0)