Skip to content

Commit 06439eb

Browse files
committed
release 3.1.1
0 parents  commit 06439eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4318
-0
lines changed

.github/workflows/actions.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: .NET SDK CI/CD
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
PROJECT_PATH: 'src/com.telstra.messaging/com.telstra.messaging.csproj'
8+
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}/output
9+
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up .NET Core
20+
uses: actions/setup-dotnet@v2
21+
with:
22+
dotnet-version: "7.0.x" # Change to your desired .NET version
23+
24+
- name: Restore Dependencies
25+
run: dotnet restore ${{ env.PROJECT_PATH }}
26+
27+
- name: Build
28+
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release
29+
30+
publish:
31+
name: Publish to NuGet
32+
needs: build
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout Code
36+
uses: actions/checkout@v2
37+
38+
- name: Set up .NET Core
39+
uses: actions/setup-dotnet@v2
40+
with:
41+
dotnet-version: "7.0.x" # Change to your desired .NET version
42+
43+
- name: Publish to NuGet
44+
run: |
45+
nuget restore
46+
dotnet msbuild ${{ env.PROJECT_PATH }} /p:OutputPath=${{ env.PACKAGE_OUTPUT_DIRECTORY }}
47+
dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
48+
env:
49+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)