Skip to content

Commit 0478b28

Browse files
author
DMarkovkin
committed
move workflow yml to correct folder
1 parent a53b837 commit 0478b28

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/xunit.pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build Bss.Testing.Xunit
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- 'xunit/**'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Get code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: "8.0.x"
21+
22+
- name: Restore packages
23+
working-directory: ./xunit/src
24+
run: dotnet restore
25+
26+
- name: Build
27+
working-directory: ./xunit/src
28+
run: dotnet build ./Bss.Testing.Xunit.sln --no-restore
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Bss.Testing.Xunit to Nuget
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Get code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v4
17+
with:
18+
dotnet-version: "8.0.x"
19+
20+
- name: Restore packages
21+
working-directory: ./xunit/src
22+
run: dotnet restore
23+
24+
- name: Build & pack
25+
working-directory: ./xunit/src
26+
run: dotnet pack Bss.Testing.Xunit.sln --no-restore /p:PackageVersion=${{ github.event.release.tag_name }} /p:InformationalVersion=${{ github.sha }} -c Release -o out
27+
28+
- name: Publish
29+
working-directory: ./xunit/src/out
30+
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
31+
env:
32+
NUGET_TOKEN: ${{ secrets.NUGET_BSSFRAMEWORK }}

0 commit comments

Comments
 (0)