Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
le-nn committed Apr 27, 2024
1 parent 8790189 commit 2edcf29
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ jobs:
- name: Publish Sample Page
run: dotnet publish ./demo/Squircle.Blazor.Demo/Squircle.Blazor.Demo.csproj -c Release -p:GHPages=true

# Deploy the site
- name: Deploy Github Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./samples/Squircle.Blazor.Demo/bin/Release/net8.0/publish/wwwroot
force_orphan: true
path: './demo/Squircle.Blazor.Demo/Squircle.Blazor.Demo.csproj'

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

0 comments on commit 2edcf29

Please sign in to comment.