-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.53 KB
/
create-and-release-web-app.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: "Create and release web app"
permissions:
actions: write
packages: write
contents: write
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build with dotnet HMSBlazor
run: dotnet build code/final/forms_migrated/HmsBlazor/HmsBlazor/HmsBlazor.csproj --configuration Release
- name: Publish with dotnet (Frontend)
run: dotnet publish code/final/forms_migrated/HmsBlazor/HmsBlazor/HmsBlazor.csproj -c Release
- name: Zip artifact for deployment
run: |
zip hms_blazor.zip code/final/forms_migrated/HmsBlazor/HmsBlazor/bin/Release/net8.0/publish/* -r
- name: Create a release with version provided by package push
uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: "v${{ env.GitVersion_SemVer }}"
generate_release_notes: true
files: |
hms_blazor.zip