-
-
Notifications
You must be signed in to change notification settings - Fork 179
33 lines (25 loc) · 845 Bytes
/
build.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
name: Build
on:
push:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'readme.md'
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v4
- name: Test
run: dotnet test -c Release
- name: Test - Compiled
run: dotnet test --configuration Release /p:Compiled=true
- name: Pack
run: |
PACKAGE_PATH="${GITHUB_WORKSPACE}/artifacts"
dotnet pack --property:PackageOutputPath=$PACKAGE_PATH --configuration Release -p:PackageVersion=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=True
- name: Publish on MyGet
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/fluid/api/v2/package