-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 980 Bytes
/
Release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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