Skip to content

Users/rbrands/2024 12 14 (#151) #76

Users/rbrands/2024 12 14 (#151)

Users/rbrands/2024 12 14 (#151) #76

name: Functions-release to slot release
on:
push:
branches:
- releases/*
# CONFIGURATION
# For help, go to https://github.com/Azure/Actions
#
# 1. Set up the following secrets in your repository:
# AZURE_FUNCTIONAPP_PUBLISH_PROFILE_RELEASE
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Setup DotNet Environment
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: 'Resolve Project Dependencies Using Dotnet'
shell: pwsh
run: |
pushd './MeetUpFunctions'
dotnet nuget add source --username rbrands --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/rbrands/index.json"
dotnet build --configuration Release --output ./output
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'meetupplanner'
slot-name: 'release'
package: 'MeetUpFunctions/output'
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE_RELEASE }}