Skip to content

Commit

Permalink
added deploy to GitHub Pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
suxrobGM committed Jul 20, 2024
1 parent 531bcc2 commit ce65a78
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 29 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Install .NET WASM Build Tools
run: dotnet workload install wasm-tools

- name: Publish FormBuilder.DesignerApp Project
run: dotnet publish ./src/FormBuilder.DesignerApp.csproj -c:Release -p:GHPages=true -o dist/Web --nologo

- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/Web/wwwroot
28 changes: 0 additions & 28 deletions .github/workflows/dotnet.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Blazor Form Builder
[![.NET Build](https://github.com/suxrobGM/blazor-form-builder/actions/workflows/dotnet.yml/badge.svg)](https://github.com/suxrobGM/blazor-form-builder/actions/workflows/dotnet.yml)
[![.NET Build](https://github.com/suxrobGM/blazor-form-builder/actions/workflows/deploy-gh-pages.yml/badge.svg)](https://github.com/suxrobGM/blazor-form-builder/actions/workflows/deploy-gh-pages.yml)

Blazor Form Builder is a comprehensive library for generating and managing forms within Blazor applications.
It provides a simple interface for creating forms with various field types, including text, numeric, date, and dropdown fields.
Expand Down
1 change: 1 addition & 0 deletions src/FormBuilder.DesignerApp/FormBuilder.DesignerApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.5"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.5" PrivateAssets="all"/>
<PackageReference Include="PublishSPAforGitHubPages.Build" Version="2.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit ce65a78

Please sign in to comment.