Skip to content

Commit

Permalink
Adding continuous delivery workflow for bindings for Azure Functions …
Browse files Browse the repository at this point in the history
…2.x+ in-process model
  • Loading branch information
tpeczek committed Feb 21, 2024
1 parent 5e67799 commit 71fbe0b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
@@ -0,0 +1,31 @@
name: Continuous Delivery (Bindings for Azure Functions 2.x+ In-Process Model)
on:
push:
tags:
- "azurefunctions-in-process-v[0-9]+.[0-9]+.[0-9]+"
jobs:
build-test-pack-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract VERSION
run: echo "VERSION=${GITHUB_REF/refs\/tags\/azurefunctions-in-process-v/}" >> $GITHUB_ENV
shell: bash
- name: Setup .NET 6.0 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Restore
run: dotnet restore src/RethinkDb.Azure.WebJobs.Extensions
- name: Build
run: dotnet build src/RethinkDb.Azure.WebJobs.Extensions --configuration Release --no-restore
- name: Test
run: dotnet test test/RethinkDb.Azure.WebJobs.Extensions.Tests --configuration Release
- name: Pack
run: dotnet pack src/RethinkDb.Azure.WebJobs.Extensions --configuration Release --no-build
- name: NuGet Push RethinkDb.Azure.WebJobs.Extensions
run: dotnet nuget push src/RethinkDb.Azure.WebJobs.Extensions/bin/Release/RethinkDb.Azure.WebJobs.Extensions.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
shell: bash
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Expand Up @@ -8,7 +8,7 @@ on:
- main
workflow_dispatch:
jobs:
build-and-test-in-process:
build-and-test-azurefunctions-in-process:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 71fbe0b

Please sign in to comment.