Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

chore(deps): update dependency microsoft.azure.functions.worker.exten… #478

chore(deps): update dependency microsoft.azure.functions.worker.exten…

chore(deps): update dependency microsoft.azure.functions.worker.exten… #478

Workflow file for this run

on:
push:
pull_request:
branches:
- main
name: Build and Deploy
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET 6
uses: actions/setup-dotnet@a351d9ea84bc76ec7508debf02a39d88f8b6c0c0 # tag=v2
with:
dotnet-version: '6.0.x'
- name: dotnet publish
run: |
dotnet publish src/Reddit2Kindle.Blazor -c Release -o Blazor
dotnet publish src/Reddit2Kindle.Functions -c Release -o Functions
- name: Azure Login
if: ${{ github.ref == 'refs/heads/main' }}
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # tag=v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy webapp
if: ${{ github.ref == 'refs/heads/main' }}
uses: azure/webapps-deploy@fb8292eb575db1bb18a90627e8959cd51dbb355c # v2
with:
app-name: reddit2kindle-blazor
package: 'Blazor'
- name: Deploy functions
if: ${{ github.ref == 'refs/heads/main' }}
uses: azure/functions-action@a7e1e59a4c0e4fac3a57f58a7ac3ece626d4a8a3 # v1
with:
app-name: reddit2kindle-functions
package: 'Functions'