Skip to content

Commit 178683d

Browse files
committed
Adding workflow for Azure Functions isolated worker model extension
1 parent 1e78fac commit 178683d

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Lib.Azure.Functions.Worker.Extensions.WebPush - CD
2+
on:
3+
push:
4+
tags:
5+
- "azure-functions-worker-extensions-v[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
deployment:
8+
runs-on: windows-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Extract VERSION
13+
run: echo "VERSION=${GITHUB_REF/refs\/tags\/azure-functions-worker-extensions-v/}" >> $GITHUB_ENV
14+
shell: bash
15+
- name: Setup .NET Core 3.1 SDK
16+
uses: actions/setup-dotnet@v4
17+
with:
18+
dotnet-version: '3.1.x'
19+
- name: Setup .NET 5.0 SDK
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '5.0.x'
23+
- name: Setup .NET 6.0 SDK
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: '6.0.x'
27+
- name: Setup .NET 8.0 SDK
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: '8.0.x'
31+
- name: Restore
32+
run: dotnet restore
33+
- name: Build
34+
run: dotnet build --configuration Release --no-restore
35+
- name: Test
36+
run: dotnet test --configuration Release --no-build
37+
- name: Pack
38+
run: dotnet pack --configuration Release --no-build
39+
- name: NuGet Push Lib.Azure.Functions.Worker.Extensions.WebPush
40+
run: dotnet nuget push src/Lib.Azure.Functions.Worker.Extensions.WebPush/bin/Release/Lib.Azure.Functions.Worker.Extensions.WebPush.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
41+
shell: bash
42+
env:
43+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

.github/workflows/cd-azure-extensions.yml renamed to .github/workflows/cd-azure-webjobs-extensions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Lib.Azure.WebJobs.Extensions.WebPush - CD
22
on:
33
push:
44
tags:
5-
- "azure-extensions-v[0-9]+.[0-9]+.[0-9]+"
5+
- "azure-webjobs-extensions-v[0-9]+.[0-9]+.[0-9]+"
66
jobs:
77
deployment:
88
runs-on: windows-latest
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v4
1212
- name: Extract VERSION
13-
run: echo "VERSION=${GITHUB_REF/refs\/tags\/azure-extensions-v/}" >> $GITHUB_ENV
13+
run: echo "VERSION=${GITHUB_REF/refs\/tags\/azure-webjobs-extensions-v/}" >> $GITHUB_ENV
1414
shell: bash
1515
- name: Setup .NET Core 3.1 SDK
1616
uses: actions/setup-dotnet@v4

0 commit comments

Comments
 (0)