diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..73fa86b --- /dev/null +++ b/.github/workflows/release.yml @@ -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} \ No newline at end of file diff --git a/README.md b/README.md index 5a54f8b..c632aa2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -**ViteProxy** is a proxy for vite projects within ASP.NET Core. +![ViteProxy](/viteproxy.png "ViteProxy") ## 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).
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. diff --git a/src/ViteProxy.csproj b/src/ViteProxy.csproj index 59197d5..3104098 100644 --- a/src/ViteProxy.csproj +++ b/src/ViteProxy.csproj @@ -1,12 +1,39 @@ - + net6.0 enable + ViteProxy + ViteProxy + 0.0.0 + + + + ViteProxy + ViteProxy + Copyright © Tobias Klika 2022 + Vite, npm, middleware, server, development + Tobias Klika + ViteProxy is a proxy for vite projects within ASP.NET Core. + git + https://github.com/ceee/ViteProxy.git + true + ViteProxy + https://github.com/ceee/ViteProxy + https://raw.githubusercontent.com/ceee/ViteProxy/main/viteproxy.png + MIT + true + true + true + snupkg + + + + \ No newline at end of file diff --git a/viteproxy-logo.png b/viteproxy-logo.png new file mode 100644 index 0000000..ceb8373 Binary files /dev/null and b/viteproxy-logo.png differ diff --git a/viteproxy.png b/viteproxy.png new file mode 100644 index 0000000..626fd14 Binary files /dev/null and b/viteproxy.png differ