Skip to content

Commit 44c2b38

Browse files
committed
Initial
0 parents  commit 44c2b38

19 files changed

+1246
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Pre release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
dotnet-version: ['8.0.x']
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup .NET Code SDK ${{ matrix.dotnet-version }}
18+
uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: ${{ matrix.dotnet-version }}
21+
- name: Install dependencies
22+
run: dotnet restore
23+
- name: Test
24+
run: dotnet test --no-restore --collect:"XPlat Code Coverage"
25+
- name: Set build label
26+
run: echo "DEVLABEL=$(date +'%Y%m%d')" >> $GITHUB_ENV
27+
- name: Pack library
28+
run: dotnet pack src/Vertical.Text.csproj -c Release -p:VersionSuffix=dev.${{ env.DEVLABEL }}.${{ github.run_number }} -o ./pack
29+
- name: Publish packages to NuGet
30+
run: dotnet nuget push ./pack/*[^.symbols].nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_PUSH_KEY }}

0 commit comments

Comments
 (0)