Skip to content

Commit

Permalink
try to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan_nizic committed Dec 5, 2024
1 parent b742ca4 commit 94dc9d1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/github-pages-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Blazor WebAssembly to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install dependencies and build
run: |
dotnet restore
dotnet publish -c Release -o build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/wwwroot

0 comments on commit 94dc9d1

Please sign in to comment.