Skip to content

Release

Release #2

Workflow file for this run

name: Release
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
# Checkout the repo
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore BlazorGeophiresSharp/server/BlazorGeophiresSharp.Server.csproj
- name: Build
run: dotnet build BlazorGeophiresSharp/server/BlazorGeophiresSharp.Server.csproj --configuration Release --no-restore
- name: Publish
run: dotnet publish BlazorGeophiresSharp/server/BlazorGeophiresSharp.Server.csproj
- name: Create zip File
run: |
Compress-Archive -Path BlazorGeophiresSharp\server\bin\Release\net8.0\publish\* -DestinationPath app.zip -Force
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Release
path: app.zip