Skip to content

Commit

Permalink
Create action deploy-to-github-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezja authored Feb 13, 2024
1 parent 75db630 commit 68c68c1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-to-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: src
run: dotnet restore
- name: Publish
working-directory: src
run: dotnet publish BlazorEmojiSearch/BlazorEmojiSearch.csproj -c Release -o release --nologo --no-restore
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot
SINGLE_COMMIT: true

0 comments on commit 68c68c1

Please sign in to comment.