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

chore(deps): update azure/functions-action digest to 238dc3c #485

chore(deps): update azure/functions-action digest to 238dc3c

chore(deps): update azure/functions-action digest to 238dc3c #485

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@238dc3c45bb1b04e5d16ff9e75cddd1d86753bd6 # v1
with:
app-name: reddit2kindle-functions
package: 'Functions'