Skip to content

Commit a6393d4

Browse files
committed
Publish previews on myget
1 parent d3bbb4f commit a6393d4

File tree

5 files changed

+35
-7
lines changed

5 files changed

+35
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ on:
77
- 'doc/**'
88
- 'readme.md'
99

10-
pull_request:
11-
branches: [ main ]
12-
paths-ignore:
13-
- 'doc/**'
14-
- 'readme.md'
15-
1610
jobs:
1711
build:
1812

@@ -29,3 +23,9 @@ jobs:
2923

3024
- name: Test - Compiled
3125
run: dotnet test --configuration Release /p:Compiled=true
26+
27+
- name: Pack
28+
run: dotnet pack --output artifacts --configuration Release -p:PackageVersion=$GITHUB_RUN_NUMBER
29+
30+
- name: Publish on MyGet
31+
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/fluid/api/v2/package

.github/workflows/pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR Checks
2+
3+
on:
4+
5+
pull_request:
6+
branches: [ main ]
7+
paths-ignore:
8+
- 'doc/**'
9+
- 'readme.md'
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
env:
16+
DOTNET_NOLOGO: true
17+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Test
23+
run: dotnet test -c Release
24+
25+
- name: Test - Compiled
26+
run: dotnet test --configuration Release /p:Compiled=true

Fluid.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{BE5EF08E
1919
Common.props = Common.props
2020
CREDITS.md = CREDITS.md
2121
NuGet.config = NuGet.config
22+
.github\workflows\pr.yml = .github\workflows\pr.yml
2223
.github\workflows\publish.yml = .github\workflows\publish.yml
2324
README.md = README.md
2425
EndProjectSection

MinimalApis.LiquidViews/MinimalApis.LiquidViews.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFrameworks>net7.0</TargetFrameworks>
55
<LangVersion>9</LangVersion>
66
<IsPackable>true</IsPackable>
77
<PackageIcon>logo_64x64.png</PackageIcon>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![NuGet](https://img.shields.io/nuget/v/Fluid.Core.svg)](https://nuget.org/packages/Fluid.Core)
44
[![MIT](https://img.shields.io/github/license/sebastienros/fluid)](https://github.com/sebastienros/fluid/blob/main/LICENSE)
5+
[![MyGet](https://img.shields.io/myget/fluid/vpre/fluid.core.svg?label=MyGet)](https://www.myget.org/feed/fluid/package/nuget/fluid.core)
56

67
## Basic Overview
78

0 commit comments

Comments
 (0)