aarhusit/Checkout, Setup, Publish and Deploy dotnet project

All included to deploy a project to IIS, eg. SmarterASP.NET or Simply.com

View on GitHub

Trust Signals

Scorecard Score
Scorecard 2–4scored Jul 13, 2026
Maintenance Recency
Maintainedlast commit Oct 24, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: aarhusit/deploy@3e56b23b778985795eefc9757852787a1fa8287a # 1.0.4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
csproj-filepathThe *.csproj to Deploy, Example: src\Solutionname\Projectname.csprojyes
website-nameIIS website nameyes
server-computer-nameIIS server computer nameyes
server-usernameIIS server usernameyes
server-passwordIIS server password, dont use special chars like (,)," or ' as it will break the commandyes
source-pathThe source directory for payloadno\publish\
target-pathThe target directory for payloadno""
target-deleteDelete files on the destination computer that do not exist on the source computernofalse
skip-directory-pathTarget a directory that any actions will be skipped onno""
dotnet-publish-verbosityAllowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimalm
dotnet-runtimeidentifierSee the [RID catalog](https://learn.microsoft.com/en-us/dotnet/core/rid-catalog)nowin-x86
dotnet-installInstall 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 falsenofalse
dotnet-versionOptional 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.2xxno9.0
self-containedPublish as self-containednotrue
reset-application-poolStop and start Application Pool before and after deploy, default is falsenofalse
appsettings-jsonFull 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-pathThe path to write the contents of 'appsettings-json' to, Example: src\Solutionname\Projectname\appsettings.jsonno""

no outputs