Using web deploy for Blazor app in GitHub Actions

33 Views Asked by At

I have a site written in Blazor Server hosted on some third-party server. The command

dotnet publish --configuration Release /p:PublishProfile=myPublishProfile.pubxml

successfully builds and updates my site on that server, meaning I can see real-time changes. Now, running that command in a GitHub Actions workflow like:

- name: Publish to host
  run: dotnet publish --configuration Release /p:PublishProfile=myPublishProfile.pubxml

steps over this Publish to host step succesfully, but doesn't really update my site.

Again, in my publish profile I have correctly put username, password and msdeployserviceurl properties. It runs fine on my machine while putting that in command but has problems in GitHub Actions.

What am I doing wrong here?

0

There are 0 best solutions below