Last active
June 7, 2020 11:37
-
-
Save RomainDelamare/188e3d42d11a99945f0e6276fc0a9d18 to your computer and use it in GitHub Desktop.
Yaml file for Blazor hosting on Github pages with Github Actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy to Github Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.300 | |
- name: Publish with dotnet | |
run: dotnet publish ./src/BlazorGithubPagesUsingGithubActions.sln --configuration Release --output build | |
- name: Deploy to Github Pages | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BASE_BRANCH: master | |
BRANCH: gh-pages | |
FOLDER: build/wwwroot | |
CLEAN: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment