Skip to content

Commit

Permalink
Update to Node / Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardofaria authored Feb 13, 2024
1 parent 2e2e5cb commit 259fecc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ jobs:
- name: Install http-server
run: npm install -g http-server

- name: Navigate to Imc\dist\wwwroot
run: cd Imc/dist/wwwroot

- name: Start HTTP server
run: http-server -c1
- name: Build and Deploy to GitHub Pages
run: |
cd Imc
npm install
npm run build
cd dist/wwwroot
git init
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Deploy to GitHub Pages"
git push --force "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" main:gh-pages

0 comments on commit 259fecc

Please sign in to comment.