Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Release SDK

Release SDK #3

Workflow file for this run

# Currently this workflow does not automatically pull in changes from development or create a git tag or Github "Release". First
# make sure to manually create a release commit in master updating the version number in the `Library/mparticle.nuspec`
# file. Then run this workflow from master to build and release to nuget. After it's released to nuget, manually create a tag
# and Github "Release" in the public repo pointing to the release commit.
name: Release SDK
on:
workflow_dispatch:
jobs:
# SDK release is done from main branch.
confirm-main-branch:
name: Confirm release is run from main branch
uses: mParticle/mparticle-workflows/.github/workflows/sdk-release-repo-branch-check.yml@stable
release-to-nuget:
name: Release and Sync Repos
runs-on: macos-14
needs: ['confirm-main-branch']
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Install Mono Framework
run: |
curl https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.206.macos10.xamarin.universal.pkg -o /tmp/MonoFramework-MDK-6.12.0.206.macos10.xamarin.universal.pkg
sudo installer -pkg /tmp/MonoFramework-MDK-6.12.0.206.macos10.xamarin.universal.pkg -target /
- name: Install Xamarin Android Framework
run: |
curl https://download.visualstudio.microsoft.com/download/pr/8cbf56b1-ef0d-466f-8cfe-fae4ba8c5080/e9e853fee3169b1c5128098942f19120/xamarin.android-13.2.2.0.pkg -o /tmp/xamarin.android-13.2.2.0.pkg
sudo installer -pkg /tmp/xamarin.android-13.2.2.0.pkg -target /
- name: Install Xamarin iOS Framework
run: |
curl https://download.visualstudio.microsoft.com/download/pr/ceb0ea3f-4db8-46b4-8dc3-8049d27c0107/3960868aa9b1946a6c77668c3f3334ee/xamarin.ios-16.4.0.23.pkg -o /tmp/xamarin.ios-16.4.0.23.pkg
sudo installer -pkg /tmp/xamarin.ios-16.4.0.23.pkg -target /
- name: Install MAUI workload
run: dotnet workload install maui
- name: Build artifacts
run: ./build.sh
- name: Release to Nuget
run: nuget push *.nupkg ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json