-
-
Notifications
You must be signed in to change notification settings - Fork 535
54 lines (40 loc) · 1.59 KB
/
dev-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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Dev Release
on:
schedule:
- cron: "0 20 * * 5"
workflow_dispatch:
env:
BUILD_VERSION: '1.6.0.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore NuGet Packages
run: dotnet restore
- name: Build - Release
run: dotnet build --configuration Release --no-restore /p:Version=$BUILD_VERSION
- name: Run Unit Tests - Release
run: dotnet test ./Tests/Blazorise.Tests/Blazorise.Tests.csproj --configuration Release --no-restore --no-build --verbosity normal
- name: Prepare E2E Tests Dependencies
run: pwsh ./Tests/Blazorise.E2E.Tests/bin/Release/net8.0/playwright.ps1 install --with-deps
- name: Run E2E Tests - Release
run: dotnet test ./Tests/Blazorise.E2E.Tests/Blazorise.E2E.Tests.csproj --configuration Release --no-restore --no-build --verbosity normal
- name: Pack - Release
run: dotnet pack --configuration Release --no-restore -o ./Packages /p:Version=$BUILD_VERSION /p:PackageVersion=$PACKAGE_VERSION
env:
PACKAGE_VERSION: ${{ env.BUILD_VERSION }}-dev-${{ github.run_number }}
- name: Push - Release
run: dotnet nuget push ./Packages/ -s https://www.myget.org/F/blazorise/api/v3/index.json -k ${{ secrets.MYGET_API_KEY }}
- name: Upload Blazorise.Components
uses: actions/upload-artifact@v3
with:
name: Blazorise-Packages
path: ./Packages/