Skip to content

Commit

Permalink
Merge branch 'main' of github.com:KristofferStrube/Blazor.WebAuthenti…
Browse files Browse the repository at this point in the history
…cation into main
  • Loading branch information
KristofferStrube committed Sep 24, 2023
2 parents 285cd7e + 6ea662f commit 42fcf3f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Publish application'

on:
push:
branches:
- main
paths-ignore:
- '**/README.md'

jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2

# Install .NET 8.0 SDK
- name: Setup .NET 8 preview
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
include-prerelease: true

# Generate the website
- name: Publish
run: dotnet publish samples/KristofferStrube.Blazor.WebAuthentication.WasmExample/KristofferStrube.Blazor.WebAuthentication.WasmExample.csproj --configuration Release --output build

# Publish the website
- name: GitHub Pages action
if: ${{ github.ref == 'refs/heads/main' }} # Publish only when the push is on main
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.PUBLISH_TOKEN }}
publish_branch: gh-pages
publish_dir: build/wwwroot
allow_empty_commit: false
keep_files: false
force_orphan: true
Binary file modified README.md
Binary file not shown.

0 comments on commit 42fcf3f

Please sign in to comment.