aarhusit/Checkout, Setup, Publish and Deploy dotnet project
All included to deploy a project to IIS, eg. SmarterASP.NET or Simply.com
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 13, 2026
- Maintenance Recency
- Maintainedlast commit Oct 24, 2025
- License
- MIT
Pinned Snippet
uses: aarhusit/deploy@3e56b23b778985795eefc9757852787a1fa8287a # 1.0.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| csproj-filepath | The *.csproj to Deploy, Example: src\Solutionname\Projectname.csproj | yes | — |
| website-name | IIS website name | yes | — |
| server-computer-name | IIS server computer name | yes | — |
| server-username | IIS server username | yes | — |
| server-password | IIS server password, dont use special chars like (,)," or ' as it will break the command | yes | — |
| source-path | The source directory for payload | no | \publish\ |
| target-path | The target directory for payload | no | "" |
| target-delete | Delete files on the destination computer that do not exist on the source computer | no | false |
| skip-directory-path | Target a directory that any actions will be skipped on | no | "" |
| dotnet-publish-verbosity | Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimal | — | m |
| dotnet-runtimeidentifier | See the [RID catalog](https://learn.microsoft.com/en-us/dotnet/core/rid-catalog) | no | win-x86 |
| dotnet-install | Install dotnet via actions/setup-dotnet@v4 using [dotnet-version]. If you are using 'runs-on: windows-latest', net core SDK 8,9 is already installed. Default false | no | false |
| dotnet-version | Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x, 3.x, 6.0.2xx | no | 9.0 |
| self-contained | Publish as self-contained | no | true |
| reset-application-pool | Stop and start Application Pool before and after deploy, default is false | no | false |
| appsettings-json | Full JSON content of the appsettings.json file you want embedded before publish. (Use secrets.APPSETTINGS_JSON at github.com -> Settings > Secrets and variables > Actions secrets and variables > Repository secrets > New repository secret) | no | "" |
| appsettings-path | The path to write the contents of 'appsettings-json' to, Example: src\Solutionname\Projectname\appsettings.json | no | "" |
Outputs
no outputs