-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (38 loc) · 1.34 KB
/
release-connect-dotnet.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
30
31
32
33
34
35
36
37
38
39
40
41
name: "Connect SDK / Dotnet (release)"
on:
workflow_dispatch:
inputs:
packageVersion:
description: 'Package Version (leave empty for next patch version)'
required: false
jobs:
publish:
name: Publish to nuget.org
runs-on: ubuntu-latest
environment:
name: nuget.org
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: Set version
run: ./.github/workflows/connect/set-connect-version.ps1 -Version ${{ github.event.inputs.packageVersion || 'NEXTPATCH' }} -Language "csharp"
shell: pwsh
- name: Build!
run: ./.github/workflows/connect/build-dotnet.ps1
shell: pwsh
- name: Push packages to Nuget
run: ./.github/workflows/connect/release-dotnet.ps1 -ApiKey ${{ secrets.NUGET_API_KEY }}
shell: pwsh
- name: Mewmba Create PR
id: mewmba-create-pr
uses: trinsic-id/mewmba/actions/mewmba-pr@main
with:
apiGithubToken: ${{ secrets.GITHUB_TOKEN }}
commitMessage: "Updated dotnet released package version"
githubAssignee: ${{ github.actor }}
prTitle: "Updated dotnet Released Package Version"
githubBranch: "main"
githubWorkingDirectory: "."
githubRepository: "trinsic-id/sdk"