Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c99280e

Browse files
committedAug 30, 2022
Add workflow as well
1 parent 6e56fdb commit c99280e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
 

‎.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Main workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
AZURE_FUNCTIONAPP_NAME: PlanetXamarinFeed
10+
AZURE_FUNCTIONAPP_PACKAGE_PATH: './output'
11+
DOTNET_VERSION: '3.1.x'
12+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
13+
14+
jobs:
15+
build-and-deploy:
16+
runs-on: windows-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@main
20+
21+
- name: Setup dotnet ${{ env.DOTNET_VERSION }} Environment
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: ${{ env.DOTNET_VERSION }}
25+
26+
- name: 'Build'
27+
run: |
28+
dotnet build --configuration Release
29+
30+
- name: '.NET Publish'
31+
run: |
32+
dotnet publish --configuration Release -o ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
33+
34+
- name: 'Run Azure Functions Action'
35+
uses: Azure/functions-action@v1
36+
with:
37+
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
38+
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
39+
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}

0 commit comments

Comments
 (0)
This repository has been archived.