-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 1.22 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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 main branch updating the version number in the `mparticle.nuspec` file.
# Then run this workflow from main branch 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 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