Skip to content

Updating readme file with sample prompts #3

Updating readme file with sample prompts

Updating readme file with sample prompts #3

Workflow file for this run

name: Build and deploy CosmicWorks Sample App
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
- name: Build
run: dotnet build --configuration Release
- name: Publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: .net-app
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'cosmicworks'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile }}
package: .