add nuget metadata + github workflow
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Verify commit exists in origin/main
|
||||
run: |
|
||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||
git branch --remote --contains | grep origin/main
|
||||
- name: Set VERSION variable from tag
|
||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release /p:Version=${VERSION}
|
||||
- name: Pack
|
||||
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
|
||||
- name: Push
|
||||
run: dotnet nuget push ViteProxy.${VERSION}.nupkg --api-key ${secrets.NUGET_PUSH_API_KEY}
|
||||
@@ -1,7 +1,9 @@
|
||||
**ViteProxy** is a proxy for vite projects within ASP.NET Core.
|
||||

|
||||
|
||||
## Introduction
|
||||
|
||||
**ViteProxy** is a proxy for vite projects within ASP.NET Core.
|
||||
|
||||
This project is meant to be used within server-side applications and not within SPAs (single-page applications).
|
||||
<br>
|
||||
Without ViteProxy you would have to start your server application (e.g. dotnet run) and additionally the vite dev server (e.g. npm run dev). The proxy is registered as a hosted service and started in tandem with the server application.
|
||||
|
||||
+28
-1
@@ -1,12 +1,39 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>ViteProxy</RootNamespace>
|
||||
<AssemblyName>ViteProxy</AssemblyName>
|
||||
<Version>0.0.0</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Product>ViteProxy</Product>
|
||||
<Title>ViteProxy</Title>
|
||||
<Copyright>Copyright © Tobias Klika 2022</Copyright>
|
||||
<Tags>Vite, npm, middleware, server, development</Tags>
|
||||
<Authors>Tobias Klika</Authors>
|
||||
<Description>ViteProxy is a proxy for vite projects within ASP.NET Core.</Description>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/ceee/ViteProxy.git</RepositoryUrl>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<PackageId>ViteProxy</PackageId>
|
||||
<PackageProjectUrl>https://github.com/ceee/ViteProxy</PackageProjectUrl>
|
||||
<PackageIconUrl>https://raw.githubusercontent.com/ceee/ViteProxy/main/viteproxy.png</PackageIconUrl>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.0 KiB |
Reference in New Issue
Block a user