Skip to content

Commit

Permalink
Publish Blazor example 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Mar 8, 2024
1 parent 5c24f61 commit 6dcbbc1
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Pure.DI check

on: [ push ]
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
Expand All @@ -21,9 +33,28 @@ jobs:
- name: Publish Blazor example
run: dotnet run --project ./build -- publish

- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: root
source: ./root/wwwroot
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 6dcbbc1

Please sign in to comment.