Skip to content

Commit 2f09565

Browse files
committed
ci: pipeline improvements
1 parent 228aba9 commit 2f09565

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,45 +15,46 @@ on:
1515
release:
1616
types:
1717
- published
18+
19+
# Allows you to run this workflow manually from the Actions tab
20+
workflow_dispatch:
21+
1822
env:
19-
# Stop wasting time caching packages
2023
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
21-
# Disable sending usage data to Microsoft
2224
DOTNET_CLI_TELEMETRY_OPTOUT: true
23-
# Project name to pack and publish
24-
PROJECT_NAME: BlazarTech.QueryableValues.SqlServer
25+
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
26+
2527
# GitHub Packages Feed settings
2628
GITHUB_FEED: https://nuget.pkg.github.com/yv989c/index.json
2729
GITHUB_USER: yv989c
2830
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2931
LOCAL_NUGET_PAT: ${{ secrets.LOCAL_NUGET_PAT }}
32+
3033
# Official NuGet Feed settings
3134
NUGET_FEED: https://api.nuget.org/v3/index.json
3235
NUGET_USER: yv989c
3336
NUGET_TOKEN: ${{ secrets.NUGET_KEY }}
37+
3438
jobs:
3539
build:
36-
runs-on: ${{ matrix.os }}
37-
strategy:
38-
matrix:
39-
os: [ windows-latest ]
40+
runs-on: windows-latest
4041
steps:
4142
- name: Checkout
4243
uses: actions/checkout@v2
43-
- name: Setup .NET 6
44-
uses: actions/setup-dotnet@v1
45-
with:
46-
dotnet-version: 6.0.x
44+
4745
- name: Restore
4846
run: dotnet restore BlazarTech.QueryableValues.sln
47+
4948
- name: Test All
5049
run: dotnet test BlazarTech.QueryableValues.sln -c Test_All --no-restore
50+
5151
- name: PreRelease-Pack
5252
if: github.event_name != 'release'
5353
run: dotnet build BlazarTech.QueryableValues.SqlServer.sln -c Release --no-restore --version-suffix=build.$env:GITHUB_RUN_NUMBER
5454
- name: Release-Pack
5555
if: github.event_name == 'release'
5656
run: dotnet build BlazarTech.QueryableValues.SqlServer.sln -c Release --no-restore
57+
5758
- name: Upload Artifacts
5859
uses: actions/upload-artifact@v2
5960
with:

0 commit comments

Comments
 (0)