Skip to content

Commit

Permalink
Publish previews on myget
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Dec 18, 2022
1 parent d3bbb4f commit a6393d4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ on:
- 'doc/**'
- 'readme.md'

pull_request:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'readme.md'

jobs:
build:

Expand All @@ -29,3 +23,9 @@ jobs:

- name: Test - Compiled
run: dotnet test --configuration Release /p:Compiled=true

- name: Pack
run: dotnet pack --output artifacts --configuration Release -p:PackageVersion=$GITHUB_RUN_NUMBER

- 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
26 changes: 26 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR Checks

on:

pull_request:
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@v3

- name: Test
run: dotnet test -c Release

- name: Test - Compiled
run: dotnet test --configuration Release /p:Compiled=true
1 change: 1 addition & 0 deletions Fluid.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{BE5EF08E
Common.props = Common.props
CREDITS.md = CREDITS.md
NuGet.config = NuGet.config
.github\workflows\pr.yml = .github\workflows\pr.yml
.github\workflows\publish.yml = .github\workflows\publish.yml
README.md = README.md
EndProjectSection
Expand Down
2 changes: 1 addition & 1 deletion MinimalApis.LiquidViews/MinimalApis.LiquidViews.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFrameworks>net7.0</TargetFrameworks>
<LangVersion>9</LangVersion>
<IsPackable>true</IsPackable>
<PackageIcon>logo_64x64.png</PackageIcon>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

## Basic Overview

Expand Down

0 comments on commit a6393d4

Please sign in to comment.