Skip to content

Commit

Permalink
update to .net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
tesar-tech committed Dec 25, 2023
1 parent 99c9c8f commit d1e68b5
Show file tree
Hide file tree
Showing 41 changed files with 1,515 additions and 1,188 deletions.
File renamed without changes
38 changes: 38 additions & 0 deletions .github/workflows/publish-to-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and deploy Blazor WASM app to github pages

on:
push:
branches: '*'

env:
PUBLISH_DIR: output
WEBAPP_PATH: ./DragAndDropList/
WEBAPP_CSPROJ: DragAndDropList.csproj

jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- name: Tailwind - download and run cli
run: |
wget https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 -O /usr/local/bin/tailwindcss
chmod +x /usr/local/bin/tailwindcss
cd ${{ env.WEBAPP_PATH }}
tailwindcss --input ./wwwroot/app.css --output ./wwwroot/app.min.css --minify
- name: Change <base href="" /> in App.razor to match gh repo name
run: |
REPO_NAME=$(echo "${{ github.repository }}" | awk -F '/' '{print $NF}')
sed -i 's/<base href="\/" \/>/<base href="\/'$REPO_NAME'\/" \/>/g' ${{ env.WEBAPP_PATH }}wwwroot/index.html
- name: Publish .NET app
run: dotnet publish ${{ env.WEBAPP_PATH }}${{env.WEBAPP_CSPROJ}} --configuration Release -o ${{ env.WEBAPP_PATH }}${{env.PUBLISH_DIR}}

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ${{ env.WEBAPP_PATH }}${{env.PUBLISH_DIR}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ bld/
[Ll]og/
[Ll]ogs/

.idea/

# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
Expand Down
25 changes: 0 additions & 25 deletions DragAndDropList.sln

This file was deleted.

73 changes: 0 additions & 73 deletions DragAndDropList/Pages/Index2.razor

This file was deleted.

30 changes: 0 additions & 30 deletions DragAndDropList/Properties/launchSettings.json

This file was deleted.

17 changes: 0 additions & 17 deletions DragAndDropList/Shared/MainLayout.razor

This file was deleted.

81 changes: 0 additions & 81 deletions DragAndDropList/Shared/MainLayout.razor.css

This file was deleted.

34 changes: 0 additions & 34 deletions DragAndDropList/Shared/NavMenu.razor

This file was deleted.

62 changes: 0 additions & 62 deletions DragAndDropList/Shared/NavMenu.razor.css

This file was deleted.

16 changes: 0 additions & 16 deletions DragAndDropList/Shared/SurveyPrompt.razor

This file was deleted.

Loading

0 comments on commit d1e68b5

Please sign in to comment.