Use nikolayp/dotnetsdk in GitHub CI #265
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: Pure.DI check | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: nikolayp/dotnetsdk | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and check | |
run: dotnet run --project ./build -- check | |
deploy-examples: | |
if: ${{ github.event_name != 'pull_request' }} | |
runs-on: nikolayp/dotnetsdk | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish Blazor example | |
if: ${{ github.ref == 'refs/heads/master' }} | |
run: dotnet run --project ./build -- publish | |
- name: Commit wwwroot to GitHub Pages | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: samples/BlazorWebAssemblyApp/bin/wwwroot |