Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ced7 authored Apr 5, 2024
1 parent b60751a commit 9f69c8f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to GitHub Pages

#Run workflow on every push to the main branch
on:
push:
branches: [ main ]

jobs:
deploy-to-github-pages:
# use ubuntu-latest image to run steps on
runs-on: ubuntu-latest
steps:
# uses GitHub's checkout action to checkout code from the main branch
- uses: actions/checkout@v4
# sets up .net sdk
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
# publishes Blazor project to the publish-folder
- name: Publish .NET Project
run: dotnet publish choixpeau.csproj -c Release
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: publish/wwwroot

0 comments on commit 9f69c8f

Please sign in to comment.