Skip to content

Commit

Permalink
ci: add dotnet paket
Browse files Browse the repository at this point in the history
  • Loading branch information
Got17 committed Jan 28, 2025
1 parent b96eed5 commit 2dc1bc5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: Install Paket as a .NET Tool
run: dotnet tool restore

- name: Add GitHub registry NuGet source
shell: cmd
run: |
dotnet nuget add source https://nuget.pkg.github.com/dotnet-websharper/index.json ^
--name github ^
dotnet paket config add-credentials https://nuget.pkg.github.com/dotnet-websharper/index.json ^
--username intellifactory-gh ^
--password "${{ secrets.PAT_PACKAGE }}" ^
--store-password-in-clear-text
- name: Restore Dependencies Using Paket
run: dotnet paket restore

- name: Build WebSharper Project
run: dotnet build WebSharper.TouchEvents.Sample/WebSharper.TouchEvents.Sample.fsproj --configuration Release
Expand All @@ -37,7 +41,7 @@ jobs:
cp -r WebSharper.TouchEvents.Sample/wwwroot/* dist/
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist

0 comments on commit 2dc1bc5

Please sign in to comment.