Skip to content

Commit 2c9cbcf

Browse files
committed
Updating GitHub Actions
1 parent 05aa8a3 commit 2c9cbcf

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.github/workflows/nightly_release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ env:
99
solution: MaterialDesignToolkit.Full.sln
1010
buildPlatform: 'Any CPU'
1111
buildConfiguration: 'Release'
12-
mdixColorsVersion: '2.0.2'
13-
mdixMahAppsVersion: '0.1.8'
14-
mdixVersion: '4.2.0'
12+
mdixColorsVersion: '2.0.3'
13+
mdixMahAppsVersion: '0.1.9'
14+
mdixVersion: '4.2.1'
1515

1616
jobs:
1717
build:
@@ -28,10 +28,10 @@ jobs:
2828
env:
2929
NUGET_AUTH_TOKEN: ${{secrets.PAT}}
3030

31-
- name: Setup .NET
31+
- name: Setup .NET 5
3232
uses: actions/setup-dotnet@v1
3333
with:
34-
dotnet-version: "5.0.x"
34+
dotnet-version: "5.x"
3535
env:
3636
NUGET_AUTH_TOKEN: ${{secrets.PAT}}
3737

@@ -41,15 +41,15 @@ jobs:
4141
- name: Build
4242
run: dotnet build ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-restore -p:Platform="${{ env.buildPlatform }}" -p:MDIXVersion=${{ env.mdixVersion }}.${{ github.run_number }} -p:MDIXColorsVersion=${{ env.mdixColorsVersion }}.${{ github.run_number }} -p:MDIXMahAppsVersion=${{ env.mdixMahappsVersion }}.${{ github.run_number }} -p:TreatWarningsAsErrors=True
4343

44-
#- name: Test
45-
# run: dotnet test ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-build --verbosity detailed --blame-crash
44+
- name: Test
45+
run: dotnet test ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-build --verbosity detailed --blame-crash
4646

47-
#- name: Upload Screenshots
48-
# if: ${{ always() }}
49-
# uses: actions/upload-artifact@v2
50-
# with:
51-
# name: Screenshots-${{ github.run_number }}
52-
# path: ${{ github.workspace }}/MaterialDesignThemes.UITests/bin/${{ env.buildConfiguration }}/net5.0-windows/Screenshots
47+
- name: Upload Screenshots
48+
if: ${{ always() }}
49+
uses: actions/upload-artifact@v2
50+
with:
51+
name: Screenshots-${{ github.run_number }}
52+
path: ${{ github.workspace }}/MaterialDesignThemes.UITests/bin/${{ env.buildConfiguration }}/net5.0-windows/Screenshots
5353

5454
- name: Build NuGets
5555
run: .\Scripts\BuildNugets.ps1 -MDIXVersion ${{ env.mdixVersion }}-ci${{ github.run_number }} -MDIXMahAppsVersion ${{ env.mdixMahappsVersion }}-ci${{ github.run_number }} -MDIXColorsVersion ${{ env.mdixColorsVersion }}-ci${{ github.run_number }}

.github/workflows/pr_verification.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Pull Request Verification
22

33
on:
4+
push:
5+
branches: [ master ]
46
pull_request:
57
branches: [ master ]
68

@@ -24,10 +26,10 @@ jobs:
2426
env:
2527
NUGET_AUTH_TOKEN: ${{secrets.PAT}}
2628

27-
- name: Setup .NET
29+
- name: Setup .NET 5
2830
uses: actions/setup-dotnet@v1
2931
with:
30-
dotnet-version: "5.0.x"
32+
dotnet-version: "5.x"
3133
env:
3234
NUGET_AUTH_TOKEN: ${{secrets.PAT}}
3335

0 commit comments

Comments
 (0)