Version fixed (#127) #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Functions-master to slot dev | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'MeetUpFunctions/**' | |
# CONFIGURATION | |
# For help, go to https://github.com/Azure/Actions | |
# | |
# 1. Set up the following secrets in your repository: | |
# AZURE_FUNCTIONAPP_PUBLISH_PROFILE | |
# | |
jobs: | |
build-and-deploy: | |
runs-on: windows-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/checkout@master | |
- name: Setup DotNet Environment | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '6.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: 'dev' | |
package: 'MeetUpFunctions/output' | |
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} |